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
850
Issue with Navigating to the configured URL when WebDataTree node is clicked
posted

Hi,

I use WebDataTree. I see that sometimes when I click on a node, it takes me to the NavigateURL which I set from my code behind. But some times it does not. Can anyone let me know if I need to do any extra configuration? 

Here is my tree:

 

<ig:WebDataTree ID="Tree" runat="server" InitialExpandDepth="0" EnableExpandOnClick="false" StyleSetName="Office2010Blue"

        InitialDataBindDepth="0" EnableAjax="true" EnableConnectorLines="false"  Font-Size="Small" OnNodeDropped="serverNodeDropped">

        <DataBindings>       

    <ig:DataTreeNodeBinding DataMember="Tree" TextField="NodeDescription" ValueField="NodeDescription" />

        </DataBindings>      

        <AutoPostBackFlags NodeDropped="On" />

        <ClientEvents NodeClick="Tree_NodeClick" />

    </ig:WebDataTree>

 

Also, Can anyone tell me how to get the NavigateUrl of the node on client side. I am capturing the node click event and I would like to navigate to the URL mentioned in the node's NavigateUrl.

Parents
  • 49378
    posted

    Hi nancy1985,

    Thank you for posting in the community.

    Regarding your first issue, I would need detailed instructions on how to reliably replicate the behavior in order to be able to provide more insight. As for accessing the navigate Url of a node on the client, this can be achieved through the event argument passed to the NodeClicked client-side event. For instance:

    eventArgs.getNode().get_navigateUrl()

    Alternatively, the navigate url may be accessed for any node using something similar to:

    ig_controls.Tree.getNodes().getNode(0).get_navigateUrl()

    Please feel free to contact me if you have any questions.

Reply Children