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

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

4 Answers 127 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sindu
Top achievements
Rank 1
Sindu asked on 24 Oct 2011, 09:28 AM

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?

Thanks

Sindu.


4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Oct 2011, 10:37 AM
Hello Sindu,

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

Thanks,
Shinu.
0
Serkan
Top achievements
Rank 1
answered on 02 Apr 2012, 02:02 PM
hi Shinu;   made me want to do this example, the problem here radtreelist_updatecommand 

0
Raka
Top achievements
Rank 1
answered on 19 Feb 2016, 02:07 PM

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.

Raka.

0
Eyup
Telerik team
answered on 24 Feb 2016, 07:51 AM
Hi Raka,

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

Regards,
Eyup
Telerik
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
Tags
TreeList
Asked by
Sindu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Serkan
Top achievements
Rank 1
Raka
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or