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

[Solved] Manual update to data source?

1 Answer 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DCollicott
Top achievements
Rank 2
DCollicott asked on 25 Jun 2009, 03:32 PM
Greetings.

I'm using RadGrid with an ObjectDataSource and SQL Server. All works well. However, I would like to have more control over when the changes to the data are sent (updated) to the database. That is, I would like to allow the user to make changes in multiple rows of the grid, and then save them when he presses a "Save" button or discard them by pressing a "Cancel" button.

I set AllowAutomaticUpdates to false, but then the user's changes to the data are lost when he presses "Update."

I've done my due diligence with the documentation, forums and such, but can't find the solution.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 30 Jun 2009, 11:16 AM
Hi DCollicott,

You can find attached a sample project we have created for your reference. It demonstrates automatic data source operations in RadGrid, where, additionally, the CommandItemTemplate is used to define image buttons with the use of which you can edit/update/cancel all items.

Greetings,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
DCollicott
Top achievements
Rank 2
Answers by
Veli
Telerik team
Share this question
or