4 Answers, 1 is accepted
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:
Thanks,
Shinu.
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
Hi Raka,
You can use the approach demonstrated in the attached web site sample to achieve this requirement.
Regards,
Eyup
Telerik
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