Hi,
i have a grid within the updatepanel. editing is enable on the grid, but all the cell Editsetting is
not enable. we have a button in form. In each click of a button, we are updateing the grid value
at client side. and then pagepostback and we are updating the value in database. if our operation
take time and i quickly click in a link to go else where or we want to to do other operation quickly
after updating the grid cell value then fallowing exception raise. how to resolve this issue?
Exception Details:
at Infragistics.Web.UI.GridControls.EditingCore.OnAction(String actionType, Object id, Object value, Object tag) at Infragistics.Web.UI.GridControls.GridBehavior.Infragistics.Web.UI.GridControls.IGridBehavior.OnAction(String actionType, Object id, Object value, Object tag) at Infragistics.Web.UI.GridControls.GridBot.LoadAdditionalClientState(Object state) at Infragistics.Web.UI.Framework.RunBot.HandleRaisePostDataChangedEvent() at Infragistics.Web.UI.GridControls.GridBot.HandleRaisePostDataChangedEvent() at Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.RaisePostDataChangedEvent() at System.Web.UI.Page.RaiseChangedEvents() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I was running into the same thing with the latest version of the grid. I am binding the grid to my data source in code behind and I have AutoCRUD off - I was getting the same "Requested record cannot be found by key" and in reading the documentation closely, I noticed something about how it said the grid requested data during postback, but not if EnableDataViewState was enabled because it kept the data client side - I enabled that and the Requested record cannot be found by key went away and I've got a data set in code behind now that I can work with and manually persist the changes back to the database.
Thanks for reply,
i tried as your suggest in your sample, but problem is still there.
Is there anothe way to resolve it?
Problem comes when you are updating the cell value very fast at client side,
and then go to another form or some where then problem arise.
Hello,
If you need further assistance with this matter, do not hesitate to contact me.
I will be glad to help.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Were you able to review my posts here from this link:
http://community.infragistics.com/forums/p/58122/312504.aspx#312504
and to download the samples attached.
If they are not helpful in your case it would be great if you can provide a sample that reproduces this issue.
Looking forward to hear from you.