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

Hierarchy grid how to access the parent key??

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 22 Sep 2010, 03:59 PM
I have a rad grid where the 2nd level of the hierachy has a tab control with two page views each of which has a radgrid on it.  I want to load the child grids server side manually (i.e. doing the read and binding myself).  Currently I'm trying to do this in the Item_Command event.  Is this the right event?  If so, how can I determine the key of the master grid row that is being expanded?  If not, what is the correct event to be able to do this?  I need the key in order to load the grids on the tabs.

Thanks

Chris

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Sep 2010, 03:36 PM
Hello Chris,

The RadGrid.Items collection contains all items from all tables in the hierarchical structure of Telerik RadGrid. By simply looping through the collection you can access all data-bound items, their controls, check the parent item keys and so on. Please review the help article below for more information:
http://www.telerik.com/help/aspnet/grid/grdtraversingdetailtablesitemsingrid.html

Kind regards,
Pavlina
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or