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 your reply.
You may find more information regarding the client-side object model of WebDataTree at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebDataTree~Infragistics.Web.UI_namespace.html
A useful sample illustrating the client-side functionalities of the tree may also be found at:
http://samples.infragistics.com/aspnet/Samples/WebDataTree/EditingAndSelecting/ClientSideAPI/Default.aspx?cn=data-tree&sid=a3e89778-3105-4c7e-9a7a-b9caabee070b
Please feel free to contact me if you need more information.
Thanks for the reply. It helped. Is there any documentation or something which I can refer to in case I have similar questions?
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.