Add/Remove controls dynamically from client side

2 posts, 0 answers
  1. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 08 Feb 2012 Link to this post

    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.
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 08 Feb 2012 Link to this post

    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 >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top