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
804
Fire events
posted

hello... the event is never fire. Why?? I have to activate some properties??

 

 

 

 

<ignav:UltraWebTree ID="UltraWebTree1" runat="server" DefaultImage=""

 

 

HiliteClass="" HoverClass="" Indentation="20" AllowDrag="True"

 

 

OnNodeClicked="UltraWebTree1_NodeClicked">

 

 

 

protected void UltraWebTree1_NodeClicked(object sender, Infragistics.WebUI.UltraWebNavigator.WebTreeNodeEventArgs e)

{

}

  • 570
    posted

    U might check the selectable property is set to "True",

    U can also check whether all autopostback flags are set to "True"

    U can also try by declaring the event from pageload:

    UltraWebTree1.NodeClicked += new Infragistics.WebUI.UltraWebNavigator.NodeClickedEventHandler(UltraWebTree1_NodeClicked);

  • 28407
    posted

    HI,

    I don't see how you are loading nodes into your tree. I tried to duplicate you issue, but could not.

     Here is my aspx page:  - my NodeClick event fires.

    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <%@ Register assembly="Infragistics2.WebUI.WebDataInput.v9.1, Version=9.1.20091.2015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.WebDataInput" tagprefix="igtxt" %>

    <%@ Register assembly="Infragistics2.WebUI.UltraWebNavigator.v8.1, Version=8.1.20081.2150, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebNavigator" tagprefix="ignav" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>

        <script type="text/javascript" id="Infragistics">
    <!--

    function WebNumericEdit1_TextChanged(oEdit, newText, oEvent){
     //Add code to handle your event here.
     debugger;
    }
    // -->
    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
       
            <igtxt:WebNumericEdit ID="WebNumericEdit1" runat="server"
                oncustombuttonpress="WebNumericEdit1_CustomButtonPress"
                onvaluechange="WebNumericEdit1_ValueChange">
                <SpinButtons Display="OnRight" />
                <ClientSideEvents TextChanged="WebNumericEdit1_TextChanged" />
            </igtxt:WebNumericEdit>
       
        </div>
        <ignav:UltraWebTree ID="UltraWebTree1" runat="server" DefaultImage=""
            HiliteClass="" HoverClass="" Indentation="20"
            OnNodeClicked="UltraWebTree1_NodeClicked">
            <Levels>
                <ignav:Level Index="0" />
            </Levels>
            <Nodes>
                <ignav:Node Text="Root Node">
                    <Nodes>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                    </Nodes>
                </ignav:Node>
                <ignav:Node Text="Root Node">
                    <Nodes>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                    </Nodes>
                </ignav:Node>
                <ignav:Node Text="Root Node">
                    <Nodes>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                        <ignav:Node Text="Child Node">
                        </ignav:Node>
                    </Nodes>
                </ignav:Node>
            </Nodes>
        </ignav:UltraWebTree>
        </form>
    </body>
    </html>


    my code-behind:

    using System;
    using System.Configuration;
    using System.Data;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;

    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void WebNumericEdit1_CustomButtonPress(object sender, EventArgs e)
        {

        }
        protected void WebNumericEdit1_ValueChange(object sender, Infragistics.WebUI.WebDataInput.ValueChangeEventArgs e)
        {

        }
        protected void UltraWebTree1_NodeClicked(object sender, Infragistics.WebUI.UltraWebNavigator.WebTreeNodeEventArgs e)
        {

        }
    }