Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
onnodeclicked event not firing.
posted

Good day.

I've got a UltraWebTree control which is implemented in the code below. The problem I have is that the method "UltraWebTree1_NodeClicked" aren't being called when I click on a node. When I set AutoPostBack to false, then the event is fired, but when I set the value to false, it doesn't seem to fire.

The question, why don't I then simply set AutoPostBack to false? Well, when I do so, I need to double click to expand the first set of nodes (this problem occurs in IE6, not in IE7). Setting it to "True" solves the double-clicking problem.

I would be glad if someone can help me to either get the onnodeclicked event to fire while AutoPostBack="True" or to help me solve the double click problem.

<ignav:UltraWebTree ID="UltraWebTree1" runat="server" Indentation="20"

DefaultImage="" onnodeclicked="UltraWebTree1_NodeClicked"

HoverClass="" ExpandImagesVisible="False"

FullNodeSelect="True" ExpandOnClick="True" AutoPostBack="True"

LoadOnDemand="Automatic" EnableViewState="True"

ExpandAnimation="Decelerate">

<AutoPostBackFlags NodeCollapsed="False" NodeDropped="False"

NodeExpanded="False" NodeChecked="False" />

<Levels>

<ignav:Level Index="0" />

<ignav:Level Index="1" />

<ignav:Level Index="2" />

</Levels>

<NodeStyle Font-Size="11px" Font-Names="Arial" ForeColor="Black"

BackColor="#EAECEE" >

<BorderDetails ColorBottom="DarkGray" ColorLeft="DarkGray"

ColorRight="DarkGray" StyleBottom="Solid" StyleLeft="Solid" StyleRight="Solid"

WidthBottom="1px" WidthLeft="1px" WidthRight="1px" />

</NodeStyle>

<RootNodeStyle BackColor="#D4D8DC" Font-Bold="True" />

<ParentNodeStyle BackColor="#D4D8DC" />

<Images>

<RootNodeImage Url="./TreeMenuImages/arrow-big.gif" />

<ParentNodeImage Url="./TreeMenuImages/Arrow-transparent.gif" />

</Images>

<Nodes>

<ignav:Node Text="Bar Charts">

<Nodes>

<ignav:Node Text="LogItems per Entity">

<Nodes>

<ignav:Node Text="Due / Over due">

</ignav:Node>

<ignav:Node Text="Total count">

</ignav:Node>

  • 7694
    posted

    Hello,

    It seems that the postback event handler is fired in any case if the NodeClicked server-side event is weird (either in code behind or declaratively in the ASPX declaration). So I suggest if this is applicable for you, to just not set NodeClicked if you do not need the postback to occur.

     

    If this does not help, you can probably find ways to cancel the event using CSOM, the following forum thread is useful:

     

    http://forums.infragistics.com/forums/p/8284/32943.aspx#32943

     

    Best Regards,
    Ivan Baev
    The Infragistics  ASP.NET Team