(Javascript)How to create RadPanelItem with ItemTemplate and other controls.?

2 posts, 0 answers
  1. Lubomir
    Lubomir  avatar
    15 posts
    Member since:
    Sep 2012

    Posted 06 Jan 2015 Link to this post

    I have a RadPanelBar.
    I want to add RadPanelItem with Item template and into this Item template I want to add other controls (checkboxes and etc..)
    This is my javascript function :

    function AddRadPanelItem
    {
          var panelBar = $find("<%= pbMain.ClientID %>");
          var panelItem = new Telerik.Web.UI.RadPanelItem();
          panelItem.set_text("FIRST PANEL ");

         //here I want to add Item template and my other controls in panelItem ?

          panelBar.trackChanges();
          panelBar.get_items().add(panelItem);
          panelBar.commitChanges();    

    }


  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    835 posts

    Posted 06 Jan 2015 Link to this post

    Hello,

    I am afraid that RadPanelBar does not support client-side templates. Instead I would suggest using the RadTreeView control which supports client-side templates and can display hierarchical data.

    Please find more information on how you can work with RadTreeView client-side templates on the following links:
            
    RadTreeView client-side templates help article and RadTreeView client-side templates online demo


    Regards,
    Ivan Danchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top