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

WPF RadGridView with Hierarchy child edit events

1 Answer 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 15 Nov 2013, 01:00 AM
Hello,

I have a RadGridView that i bind to custom objects and those objects have a property which is a list of child objects.  All works fine, except I cannot figure out how to capture child grid/table edit events. For instance in the code behind I have this:

          this.radGridView.RowEditEnded += radGridView_RowEditEnded;


so I can respond and call some other services when a row edit ends on a parent row.  But how to attach handlers to my child table definitions?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 19 Nov 2013, 11:54 AM
Hi James,

You can achieve your requirement by using RadGridView with RowDetails. Basically, they work directly on the corresponding business object (the DataContext of each GridViewRow, i.e. each data item). In your case, you can place another RadGridView inside the RowDetailsTemplate. Please check this online demo for a reference(the same example is available in your local copy of WPF demos). Then you can take a look at this help article where you can find more information about the RowDetails.

For your convenience I have prepared a sample project showing you the approach.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
James
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or