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

RadGridView RowDetail

3 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Priya Iyer
Top achievements
Rank 1
Priya Iyer asked on 12 Jul 2010, 07:07 PM
Hi,

I have a RadGridView and with RowDetailTemplate. In RowDetailTemplate I have another RadGridView with select column. How can I get selected columns from the child grid view? RowLoaded event for childgridview  only gives parent row with all child gridview row.
Could you let me know is there any way to get only selected row from rowdetailstemplate?

Thank you!

Priya

3 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 13 Jul 2010, 04:50 AM
Hi Priya Iyer,

There are several ways to do that depending on your scenario. 

For example, if you would like to get the selected child items every time the selection in a child grid changes you could simply subscribe for SelectionChanged on the root grid. SelectionChanged is a routed event which means that SelectionChanged of the main grid will be raised if selection occurs on any of the child grids.

// subscribe for SelectionChaged
void gridView_SelectionChanged(object sender, SelectionChangeEventArgs e)
{
    // selection has occurred on a child grid
    if (e.OriginalSource != this.myRootView)
    {
  
    }
}


Kind regards,
Milan
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
0
Priya Iyer
Top achievements
Rank 1
answered on 13 Jul 2010, 02:52 PM
Hi Milan!

Thank you! It works fine. I have another question with same GridView. Could you please tell me how can I get a loaded child row? and Item which binds with child row?

Thanks in advance.

Priya
0
Priya Iyer
Top achievements
Rank 1
answered on 13 Jul 2010, 02:56 PM
Thanks Milan. I have figured it out.



Thank you!
Priya
Tags
General Discussions
Asked by
Priya Iyer
Top achievements
Rank 1
Answers by
Milan
Telerik team
Priya Iyer
Top achievements
Rank 1
Share this question
or