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.
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.
Thanks for the reply. It helped. Is there any documentation or something which I can refer to in case I have similar questions?