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

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

1 Answer 64 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Lubomir
Top achievements
Rank 1
Lubomir asked on 06 Jan 2015, 02:20 PM
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();    

}


1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 06 Jan 2015, 04:32 PM
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.

 
Tags
PanelBar
Asked by
Lubomir
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or