Treeview showing/hiding usercontrols dependent on nodes "type"

2 posts, 0 answers
  1. Anthony Jackson
    Anthony Jackson avatar
    4 posts
    Member since:
    Oct 2009

    Posted 06 Nov 2009 Link to this post

    I'm displaying different usercontrols on the right of my treeview for editing dependent on the "type" of the node selected in the treeview, as each level of node represents a very different object.  While I'm able to get this to work, I'm not able to get it working with AJAX. 

    Ideally, when a node is clicked on the left, the nodeclick event should run on the server, select the necessary usercontrol based on nodetype, show it, bind it, and hide the others. 

    So far the only way I'm able to get this behavior is with a full postback.  Any samples that are similar to this that anyone can point me too would be greatly appreciated.

    Thanks,
    Anthony
  2. Yana
    Admin
    Yana avatar
    5015 posts

    Posted 10 Nov 2009 Link to this post

    Hello Anthony,

    I suggest you use RadAjaxManager in your case. You should configure it the treeview to update an asp panel. Then in OnNodeClick event handler you can add user controls to this panel.

    Please contact us again if you have any issues with this approach.

    Best regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top