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

Add/Remove controls dynamically from client side

1 Answer 117 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
mirang
Top achievements
Rank 1
mirang asked on 08 Feb 2012, 12:55 PM
Is it possible to add and remove radtreeview to the radpanelbaritem dynamically from client side using javascript. I wanted to have a radpanel to which when the user expands a radpanelbaritem, a treeview is dynamically added to that from client side using javascript. Simillarly the panelbaritem which is being collapsed can go and remove all its children from client side using javascript. 
In short i was looking at a solution to add/remove item templates dynamically from client side using javascript.

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 08 Feb 2012, 01:19 PM
Hi Mirang,

In general the scenario that you need to achieve is not officially supported, however, you could try using the jQuery - Templates as exemplified in this demo. Furthermore you can take a look at the following forum posts where a similar scenario is being described:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/adding-a-template-to-a-node-client-side.aspx 

Regards,
Kate
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
PanelBar
Asked by
mirang
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or