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

Parent Child relation in grid

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
abhijit
Top achievements
Rank 1
abhijit asked on 21 Sep 2011, 04:10 PM
Hi ,

i want to create grid having parent and child relationship.
After clicking parent row i want to get ID and make call to DB and get child records and then display in same grid.

can you help me in this.

Note: i dont want to populate all child for all parent on load. when user clicks on parent i want to get only child records for that parent  from DB and display.

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 21 Sep 2011, 06:33 PM
Hello,

Please try below to below property.
<MasterTableView HierarchyLoadMode="ServerOnDemand"
or
<MasterTableView HierarchyLoadMode="ServerBind"

and for hierarchy grid check below link.

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchyloadmodemixed/defaultcs.aspx


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
abhijit
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or