This is a migrated thread and some comments may be shown as answers.

Treeview showing/hiding usercontrols dependent on nodes "type"

1 Answer 33 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Anthony Jackson
Top achievements
Rank 1
Anthony Jackson asked on 06 Nov 2009, 07:57 PM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 10 Nov 2009, 12:38 PM
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.
Tags
TreeView
Asked by
Anthony Jackson
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or