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

Nested RadGrid with one List<Object> datasource

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 25 Sep 2014, 09:48 PM
I have a class defined like below:

ID int
Name varchar(50)
MyBooks List<books>
MyAuthors List<authors>

I am loading in c#  a list of class above.

On the datagrid, I have the main datagrid that will get ID and Name populated when I do the binding.
How can I setup the relationship so the 2 nested grids get the MyBooks as List<books> and MyAuthors as List<authors> bound

thank you

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 30 Sep 2014, 11:13 AM
Hello Anthony,

You can implement programmatic binding to achieve this requirement:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/programmatic-hierarchy/defaultcs.aspx

Hope this helps.

Regards,
Eyup
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
Grid
Asked by
Anthony
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or