Greetings!
So it is my Problem: Delete records in the WebDataGrid. The WebDataGrid has a virtual scrolling.
I try to change your code in an example. As I need such logic of remove of a record from the WebDataGrid.But I have an exception "[MissingRecordException]: Requested record cannot be found by key". I send you your code changed by me, you can see as it works.And I need the decision of this problem. As it is logical to delete records thus if it is a lot of records in the WebDataGrid.
Exception is by virtual scrolling!!!
Best regards!
Nevermind, in my research I found the solution rfom another user:
"I set <ig:EditingCore AutoCRUD="False"> in <Behavious> and <ig:WebDataGrid EnableDataViewState="True" EnableViewState="True">. It works fine. I think maybe Infragistics has already fixed the bug because I downloaded the controls on 1/27/2011."
Hope this helps someone else in need. :)
klp0
<ig:EditingCore AutoCRUD="False"> in aspx
Provide below lines in code behind
grd.ClearDataSource();
grd.DataBind();
In grd_RowUpdating and grd_RowDeleing event after deleing or updating the row.
I have the same problem (webdatagrid) when deleting 3 or more rows. The above options do not fix the issue. I'm on build 2086 (latest atm).
I'm having the same problem with WebDataGrid in 12.2.20122.2075 with a page that has multiple WebDataGrids on it when I insert a row in more than one grid. The insert in the 2nd grid throws this JavaScript exception every time. The workaround I just discovered is to set EnableAjax=False and wrap the WebDataGrid in an UpdatePanel.
I'm also having the same problem. I manually assign a generic list to the datasource property. When I remove an item from the underlying database and update the grid asyncronously I get the error. I've tried everything suggested in this thread.