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
80
Webdatatree node click click event not executing
posted

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

Parents
No Data
Reply
  • 33839
    posted

    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

Children