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

[Solved] RadGridView Row Details template implementing edit, save, cancel for the row data

7 Answers 542 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bibhakar Saran
Top achievements
Rank 1
Bibhakar Saran asked on 30 Jun 2010, 06:42 AM

I want the ability to edit data being displayed in the grid and cancel or save changes for the row from RowDetailsTemplate (user control) of the RadGridView.
Is that possible?

I have a RowDetailsTemplate with two way binding and a save/cancel button.
I don't know how to access the dataSource to Comit or cancel changes from within the RowDetailsTemplate. Please help
Should I be using RowDetailsVisibility changed event for the RadGridView?

I am using SL4, .NET 4 and VS2010 for development tool set. I am Business Application template with Domain Services and Entity Framework.

Thanks
Regards

7 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 30 Jun 2010, 07:44 AM
Hi Bibhakar Saran,

This blog should provide the information that you seek. 


Best wishes,
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
Arun
Top achievements
Rank 1
answered on 19 Jul 2010, 09:01 PM
Hey Milan,
Is the link given by you working?
0
Arun
Top achievements
Rank 1
answered on 20 Jul 2010, 01:22 AM
Thanks Carlos
0
Ahmad
Top achievements
Rank 1
answered on 20 Oct 2010, 01:28 PM
Dear Milan,

i am using telerik controls in my first WPF application, i have a page with RadGridView control, i add <telerik:RadGridView.RowDetailsTemplate> this RowDetails contains RadTab control, i load inside the Tab a user control according to the toggled row in the grid.

this tab have a SelectionChanged event, how i can know in which row so that i can read specific value from that row and pass it to the usercontrol to load the data.

i will appreciate you response

thanks
0
Milan
Telerik team
answered on 21 Oct 2010, 01:37 PM
Hello Ahmad,

Each row's data item will be assign as DataContext for that row's details. For example, if the grid is bound to Customer object, the details of the first row will have as DataContext the first customer in the ItemsSource. Having this in my you can directly bind to the values of the data item as demonstrates in this demo. EmployeeInfoDetailsTemplate.xaml should be of particular interest - you can view it by clicking on the View Code button.

Hope this helps.


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
pat
Top achievements
Rank 1
answered on 14 Aug 2011, 08:59 PM

This link does not work can we have an update?

Tags
GridView
Asked by
Bibhakar Saran
Top achievements
Rank 1
Answers by
Milan
Telerik team
Arun
Top achievements
Rank 1
Carlos
Top achievements
Rank 1
Ahmad
Top achievements
Rank 1
pat
Top achievements
Rank 1
Share this question
or