[CLOSED] Unable to override TreeNodeUI onDblClick

  1. #1

    [CLOSED] Unable to override TreeNodeUI onDblClick

    Hi,

    I'm trying to override the onDblClick event of the TreeNodeUI to disable the expand/collapse behaviour according to the following instructions:
    http://forums.ext.net/showthread.php...n-double-click

    When I use the syntax like it is described in the previous post:
            Ext.tree.TreeNodeUI.override({
                onDblClick: function (e) {
                    // custom logic
                }
            });
    I get an error saying:
    Microsoft JScript runtime error: Unable to get value of the property 'override': object is null or undefined
    When I use the syntax like this:
            Ext.override(Ext.tree.TreeNodeUI, {
                onDblClick: function (e) {
                    // custom logic
                }
            });
    I get the following error:
    Microsoft JScript runtime error: Unable to get value of the property '$isClass': object is null or undefined

    By the way, I'm using Ext.NET 2.1.0 and I've already put an ResourceManager in the body and a ResourcePlaceHolder with Mode=ScriptFiles in the head of the master page.

    Doe's anybody know a solution to this problem?

    Regards,
    Martin
    Last edited by Baidaly; Dec 13, 2012 at 9:09 PM. Reason: [CLOSED]
  2. #2
    Hi Martin,


    There is no the TreeNodeUI class in Ext.NET v2 at all.

    Please set up:
    <ext:TreePanel runat="server">
        <View>
            <ext:TreeView runat="server">
                <CustomConfig>
                    <ext:ConfigItem Name="ToggleOnDblClick" Value="false" Mode="Raw" />
                </CustomConfig>
            </ext:TreeView>
        </View>
    </ext:TreePanel>
    or just
    <ext:TreeView runat="server" ToggleOnDblClick="false" />
    after update from SVN.

    Quote Originally Posted by martin.mosimann View Post
    By the way, I'm using Ext.NET 2.1.0 and I've already put an ResourceManager in the body and a ResourcePlaceHolder with Mode=ScriptFiles in the head of the master page.
    Just for the future: a ResourcePlaceHolder control is not required anymore for such overrides. You can just put a script into a page's <head>.
  3. #3
    Hi Daniil,

    Whow, I didn't expect that it would be that easy. ;-)

    It works perfectly!

    Thanks a lot for the quick and great answer,
    Martin

Similar Threads

  1. Calendar Override
    By Avatarus in forum 1.x Help
    Replies: 1
    Last Post: Sep 28, 2012, 1:18 PM
  2. Override Ext.net theme
    By Nhím Hổ Báo in forum 1.x Help
    Replies: 1
    Last Post: May 02, 2012, 9:31 PM
  3. [CLOSED] Override styles
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 15, 2012, 3:19 PM
  4. how to override in formpanel ?
    By jhenriquecosta in forum 1.x Help
    Replies: 1
    Last Post: Feb 08, 2010, 11:04 AM
  5. TriigerField ondblclick
    By Fox in forum 1.x Help
    Replies: 0
    Last Post: Apr 12, 2009, 12:26 PM

Tags for this Thread

Posting Permissions