(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 ?



  2. Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 06 Jan 2015 Link to this post


    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

    Ivan Danchev

    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. DevCraft R3 2016 release webinar banner
Back to Top