Hi ,
I have a web data grid (<ig:EditingCore Enabled="true" BatchUpdating="false">) v12.1,
which is inside an Update Panel and also a have Button to save the changes on a single Go to save everything.
While i am making some changes and click on the Save button, the row i am modifying , does not get added to the Editing Core.
so i added these three client events
//Save button Client event
function btnSave_onclick() {
var grid = $IG.WebDataGrid.find('<%= wdgCCRChangeAppliers.ClientID %>');
var editing = grid.get_behaviors().get_editingCore();
editing.commit();
}
//event 2
function exitEditMode(webDataGrid, evntArgs) {
webDataGrid.get_behaviors().get_editingCore().commit();
//event 3
function valueChanged(webDataGrid, evntArgs) {
by doing so, now i am able to get the modified rows added if the clumns are simple bound columns i.e. Simple text columns unlike drop down or Date Picker.
What i mean is that if i edit simpe text cells of a row and click Save directly without focusing out of the modified text cell, i am able to get the row added to the editing core.
But if the cell i am modifying is Date picker or any drop down, the row does not get added to the editing core.
Kindly help.
Regards,
Parthiban Sekar
Hello Parthiban,
Sorry for the late response.
I created a sample, demonstrating updating a grid with editor providers. Please refer to it and let me know if you have any questions.
Nikolay,
I am already using the client event "ExitedEditMode" as follows.
<CellEditingClientEvents ExitedEditMode="exitEditMode" />
To be clear, this code seems to work for all colums other than drop down columns.
if the column is a drop down column, when you change the value and click on a button without focussing out from the modified cell, The changes are not getting updated in the editing core.
Thanks, Parthi