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

[Solved] How to retain Edit Form information on Error

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 17 Aug 2009, 06:17 PM
Anyone know how to retain the information entered on a Edit Form when an error is captured on the ItemUpdated event?

I am trying to keep the information the user entered prior to submitting the update, NOT rebind the data from the datasource.

 

Protected Sub RadGrid1_ItemUpdated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridUpdatedEventArgs) Handles RadGrid1.ItemUpdated

 

 

If Not e.Exception Is Nothing Then

 

e.KeepInEditMode =

True

 

e.ExceptionHandled =

True

 

 

End If

 

 

End Sub

 

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 17 Aug 2009, 08:13 PM
Just wanted to post the first idea that came to my mind:
You could try setting the EnableCaching=true to have the grid get cached and that could perhaps restore the information after an error occurs. Then, whenever you would need/want it, you could force a rebind() to the server to make sure all the data is stored there.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or