I have radgrid that calles the objectdatasource which calls the data access (DA) to populate the radgrid.
Radgrid has edit form template to update and insert the records.
1. radgrid is open in edit form ..
2. User enters the NEW values and click the update button.
3. DA is called to update the database.
4. DA throws the exception that business logic rejected the update process ...
5. DA is automatically called to get the data again and keeps the radgrid in edit mode... and controls are populated with the original values this results in loss of NEW values entered by the user...
My understanding is that after step 4... DA should not be called again to populate the edit form with original values.. Rather it should retain the NEW values and give the user a chance to modify these to try again the update process....
My code radgrid1_ItemUpdated is keeping the radgrid open in edit form template but the NEW values are lost as radgrid goes back to the DA to get the original data. Where as this round trip to database is USELESS...
WHY radgrid goes to step 5.. How can i stop it...
Radgrid has edit form template to update and insert the records.
1. radgrid is open in edit form ..
2. User enters the NEW values and click the update button.
3. DA is called to update the database.
4. DA throws the exception that business logic rejected the update process ...
5. DA is automatically called to get the data again and keeps the radgrid in edit mode... and controls are populated with the original values this results in loss of NEW values entered by the user...
My understanding is that after step 4... DA should not be called again to populate the edit form with original values.. Rather it should retain the NEW values and give the user a chance to modify these to try again the update process....
My code radgrid1_ItemUpdated is keeping the radgrid open in edit form template but the NEW values are lost as radgrid goes back to the DA to get the original data. Where as this round trip to database is USELESS...
protected void radgrid1_ItemUpdated(object source, GridUpdatedEventArgs e)
{
if (e.Exception != null)
{
e.KeepInEditMode =
true;
e.ExceptionHandled =
true;
WHY radgrid goes to step 5.. How can i stop it...