Hi all
I have one webdatatree control inside the update panel .
i ave registered the node click event on page load using the following code
base
.OnInit(e);
wdtHomeTree.NodeClick +=
new DataTreeNodeClickEventHandler(OnSelectNode);
where onselectNode is a method having args as
protected void OnSelectNode(object sender, DataTreeNodeClickEventArgs e)
The method is not getting called at all.
Please guide how to proceed from here
Thanks
Saurabh
Saurabh,
If you want to use the node click event on the server, you will need autopostback set to Async or On for node click. Depending upon what you are doing, you could also handle the node selection changed event as well in a similar fashion on the server. Or you could handle one or both of those similar events on the client instead. But set the autopostback flag for node click and let us know if that solves this problem for you.
regards,
Dave Young
I have defined tree like following
<ig1:WebDataTree ID="wdtHomeTree" runat="server" Width="99%" AnimationEquationType="Linear"EnableConnectorLines="True" AutoPostBackFlags-NodeClick="On" AutoPostBackFlags-SelectionChanged="On"SelectionType="Single" OnNodeClick="OnSelectNode" >
now its working, One more thing how to get the value of the selected node , i mean how to get that which node is clicked. i dint find any help on net :(