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
Hi Parthi,
I tried this under IE, Chrome and Firefox but I could not reproduce the issue. When I open the DropDownProvider and change the value, then click on the Save button without focusing out of the dropdown, the update is saved. Is it happening in the sample I have previously attached?
Hi
Still I m facing same problems in IE not Firefox or Chrome.
I have changing in WebDataGrid Cell by using DropDownProvider and click Save button. I am not getting changed value by Grid.Rows[tmpI].Items.FindItemByKey("AGroupNo").Value;
Can you give me any suggestion immediately.
Best Regards
Suday
Hello Parthi,
Feel free to contact me if you still need assistance with the matter.