I am using knockout to bind data to a grid. If I click on a checkbox and move to another cell the value is getting committed. If I click the checkbox then click on a save button the value is not getting committed and when i call the commit method on the grid the value of the checkbox reverts back to its original state
Hello,
Thank you for the update. I would recommend you to use below line of code to end editing before using save method:
$("#grid").igGridUpdating("endEdit");
If the issue is still present after using above line of code, provide me with the grid’s initialization code so I may look in to this.
I hope this helps.
That does not work. The changes revert back to their original state. The only way I can get this to work is by faking the grid out and starting an edit on another row.
$('#grid1').igGridUpdating('startEdit', 1, 1);
$("#grid1").igGrid("commit");
I would recommend you to use save changes method before commiting data as shown below:
$(".selector").igGrid("saveChanges");
Refer to the “METHODS” tab on the API document link below for more details on this method:
http://help.infragistics.com/jQuery/2013.1/ui.iggrid