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.
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
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.