Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Cannot update a cell after/while updating other cell - Editing Grid
posted

Hi all,

I have a problem with Editing Grid. I have a snippet to update cell #3(My Progress) when editing cell #1(LO/Completed) or cell #2(Handbook/ Completed) in same row. I use "igGridUpdating" but in this case, it cause an error in Console "Uncaught Error: cannot call methods on igEditorFilter prior to initialization; attempted to call method 'remove'" and after, cannot editing anything.

I attached the source code, you can see in my-progress-tracker.js file.

$(self.gridId).on("iggridupdatingeditcellending", function (evt, ui) {

if (!ui.update) return false;

var brand = $(ui.editor).closest('table');//get table-child - table[data-childgrid="true"]
var rowIndex = ui.rowID;

var loStatus = $(brand).igGrid("getCellValue", rowIndex, 'LOStatus');
var hbStatus = $(brand).igGrid("getCellValue", rowIndex, 'HandbookStatus');

if (loStatus && hbStatus) {
$(brand).igGridUpdating("updateRow", rowIndex, { MyProgress: 'Good job' });
} else {
$(brand).igGridUpdating("updateRow", rowIndex, { MyProgress: 'Remaining' });
}
return true;
});


Can you help me? I'm looking forward a solution :|


Thanks.


FrameworkSample.rar
Parents Reply Children