Hi I am using Infragistics4 v11.2.
I am using a WebDataGrid, in which I have a couple of editable columns and a column with checkboxes. Rest of the columns are read only. For this I have used ObjectDatasource with paging and sorting enabled.
My requirement is that , when a button is clicked, on the server side button click event, I need to save the data entered in those two columns for all rows with the checkbox checked.
The issue I am facing is that when I edit the cells corresponding to those columns, It is trying calculate the updates and fire the update event. I am getting an exception "NotImplementedException: The method or operation is not implemented ".
Can anyone please tell me how to disable this auto CRUD. I dont want any update events to be fired. I tried <ig:EditingCore AutoCRUD="False"> , but no use.
Also, to fix the exception I tried defining a dummy update function. But it did not help.
Hi Nikolay,
I tried defining a dummy update, insert,delete methods, which do noting. I have changed my objectdatasource accordingly. But still I am getting the same exception.
Hi nancy1985,
If you can attach a sample reproducing the exception, I can take a look and see if it is somethign that can be fixed.
regards,David Young
Hello nancy1985,
When binding the WebDataGrid to an ObjectDataSource the data source has to be configured to support CRUD operations. I suggest that you implement insert, select, update and delete methods in your business object and change your ObjectDataSource accordingly. More information on the matter can be found here - http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.objectdatasource.aspx .
Please let me know if this helps.
Further, to the above description I am pasting the stack trace which I get:
NotImplementedException: The method or operation is not implemented.] Infragistics.Web.UI.Framework.Data.DataRecordPropertDescriptor.SetValue(Object component, Object value) +54 Infragistics.Web.UI.Framework.Data.<>c__DisplayClass1.<Update>b__0(Int32 affectedRecords, Exception exception) +384 System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +143 Infragistics.Web.UI.Framework.Data.DataSourceControlAdapter.Update(Object dataItem, IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +397 Infragistics.Web.UI.Framework.Data.DataSourceObjectView.Update(Object dataItem, IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +62 Infragistics.Web.UI.GridControls.EditingCore.OnAction(String actionType, Object id, Object value, Object tag) +4803 Infragistics.Web.UI.GridControls.GridBehavior.Infragistics.Web.UI.GridControls.IGridBehavior.OnAction(String actionType, Object id, Object value, Object tag) +48 Infragistics.Web.UI.GridControls.GridBot.LoadAdditionalClientState(Object state) +1319 Infragistics.Web.UI.Framework.RunBot.HandleRaisePostDataChangedEvent() +204 Infragistics.Web.UI.GridControls.GridBot.HandleRaisePostDataChangedEvent() +73 Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.RaisePostDataChangedEvent() +37 System.Web.UI.Page.RaiseChangedEvents() +134 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5201