I am using WebDataGrid within Infragistics45.Web.v19.2 assembly.
When I apply formatting to an editable cell using DataFormatString property inside the HTML markup, and make a change to that cell during run-time, the row does not get marked as dirty. This prevents the RowUpdating event from firing, and hence the data does not get updated.
Is this an Infragistics bug? Can you suggest an alternate way of applying formatting to an editable cell?
Here is some of the relevant markup and code:
HTML:<ig:WebDataGrid runat="server" ID="wdg" DataKeyFields="Id" Width="100%" AutoGenerateColumns="false" EnableDataViewState="true"> <Columns> <igtbl2:BoundDataField Key="Id" DataFieldName="Id"> </igtbl2:BoundDataField> <igtbl2:BoundDataField Key="Price" DataFieldName="Price" CssClass="EditableCell"> </igtbl2:BoundDataField> </Columns> <Behaviors> <igtbl2:EditingCore BatchUpdating="true"> <Behaviors> <igtbl2:CellEditing EditModeActions-MouseClick="Single" EditModeActions-EnableF2="true" EditModeActions-EnableOnActive="true" EditModeActions-EnableOnKeyPress="true" Enabled="true" CellEditingClientEvents-EnteringEditMode="wdg_CellEdit"> </igtbl2:CellEditing> </Behaviors> </igtbl2:EditingCore> </Behaviors></ig:WebDataGrid>
Javascript:function wdg_CellEdit(sender, eventArgs) { var cellToEdit = eventArgs.getCell().get_column().get_key(); if (cellToEdit != "Price") { eventArgs.set_cancel(true); }}
Hello,
Thank you for posting in our community.
I noticed that there is another thread in our forum regarding the same query. Please keep in mind that according to our support policy, we handle single thread per issue and I will continue assisting you via the other thread, where I have already replied.
Thank you for using Infragistics components.