RadTreeList -inside a control which should have Expand /Collapse button

5 posts, 0 answers
  1. Sindu
    Sindu avatar
    46 posts
    Member since:
    Oct 2011

    Posted 24 Oct 2011 Link to this post

    Hi Princy,

      I have a RadTreeList.I want to add a RadTreeList inside any RadControl.
     My objective is to expand this radControl shows RadTreeList .
     How is it possible?



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Oct 2011 Link to this post

    Hello Sindu,

    You can add a RadTreeList in NestedViewTemplate of the RadGrid as shown below.
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="true">
              <telerik:RadTreeList ID="RadTreeList1" runat="server" DataSourceID="SqlDataSource2"
                  ParentDataKeyNames="ReportsTo" DataKeyNames="EmployeeID" AutoGenerateColumns="false">
                      <telerik:TreeListBoundColumn DataField="EmployeeID" UniqueName="EmployeeID" HeaderText="Employee ID" />
                      <telerik:TreeListBoundColumn DataField="LastName" UniqueName="LastName" HeaderText="Last Name" />

  3. Serkan
    Serkan avatar
    6 posts
    Member since:
    Jan 2012

    Posted 02 Apr 2012 Link to this post

    hi Shinu;   made me want to do this example, the problem here radtreelist_updatecommand 

  4. Raka
    Raka avatar
    71 posts
    Member since:
    Sep 2011

    Posted 19 Feb 2016 in reply to Shinu Link to this post

    Hello.  This is a very old post but I am having a problem with RadTreeList inside a NestedViewTemplate of RadGrid.  RadGrid has a DataKeyName=SomeID.  I want to use this SomeID in RadTreeList1_NeedDataSource to filter out the data I want displayed.  How do I access SomeID in that event handler?

    If RadGrid has three rows based on SomeID, currently what I am getting is the same RadTreeList repeated three times.  What I need is somehow show RadTreeList based on first SomeID value in first RadGrid-Row and so on...


    Thank you for your help.


  5. Eyup
    Eyup avatar
    3620 posts

    Posted 24 Feb 2016 Link to this post

    Hi Raka,

    You can use the approach demonstrated in the attached web site sample to achieve this requirement.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top