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

Binding Group for RadGridView

3 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Datafyer
Top achievements
Rank 1
Veteran
Datafyer asked on 11 Nov 2010, 01:28 AM
I have a RadGridView that I would like users to edit as much as they want, but not to save any changes back to the binding object until the user clicks the save button. For textboxes and such I have used binding groups, but this approach does not seem to work for the RadGridView.

What is the best approach for delayed edits for the entire grid?

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 Nov 2010, 08:46 AM
Hello Patrick,

Basically, you may set the ActionOnLostFocus property of the RadGridView to "None". In this way the changes will not be summited when the cell loses the focus. However, in case this does not help in your application, I would need more details about the settings of your grid. Any relevant code-snippet would be helpful.
 

Sincerely yours,
Maya
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
Datafyer
Top achievements
Rank 1
Veteran
answered on 20 Nov 2010, 12:39 AM
I have not got this to work with your suggestion or any other thing I tried. I am using a regular RadGridView with no settings. Just simply bound to a ObservableCollection of items.
0
Maya
Telerik team
answered on 22 Nov 2010, 04:15 PM
Hello Patrick,

Another approach to cancel editing on a row-base may be to use the CancelRowEdit command as demonstrated in our demo. In case you want to make changes on all items and be capable of restoring their initial values, you need to keep the original items in a collection and set it as the ItemsSource of the grid once the Cancel button is clicked for example.
  

Kind regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
GridView
Asked by
Datafyer
Top achievements
Rank 1
Veteran
Answers by
Maya
Telerik team
Datafyer
Top achievements
Rank 1
Veteran
Share this question
or