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

TreeView - Added Control disappearing on NodeClick

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
pradip
Top achievements
Rank 1
pradip asked on 25 Jul 2012, 10:29 AM
Hi

I am having treeView where parent/First node is User Control. It is for user to type item name and click on search button. On Click on search button treeView gets loaded with valid items. It looks like

- User Control (text box + Button)
   - Item1
   - Item 2
   + Item 3
   - Item 4

When user is clicking any of the node, like Item 1 or Item 2, User control is disappearing from the treeView. I can only see other node. It is happening only when I am clicking node, if I am trying to expand the node it is maintaining user control as it is.

Please kindly guide me on how to solve this problem.

Thanks,
Pradip

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Jul 2012, 09:06 AM
Hello Pradip,

 
You can refer to this help topic where is shown what are the recommended practices to add and edit templates at run time.

Hope this will help you.

Kind regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
pradip
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or