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.
Hello Ngan Le Thi,
Sorry for the late response.
The reason for the error is a change in jQuery UI 1.9.0 which breaks our code. If you use jQuery UI 1.8.24 it will works.
As a workaround try using the "editCellEnded" event.
You should change only this line:
$(self.gridId).on("iggridupdatingeditcellended", function (evt, ui) {
Hope this helps,
Martin PavlovInfragistics, Inc.
Hi Martin,
I tried this before and both iggridupdatingeditcellended/iggridupdatingeditcelling are errors
Thanks,
Ngan
Hello Ngan,
That's strange. I didn't expect that.
Can you reproduce the problem when using jQuery UI 1.8.24?
Thanks in advance,
I'm getting this issue as well using jquery-ui.1.11.0.
I tried using jquery-ui-1.8.24 but that broke other parts of my page (my datepicker column)
Is there any plan to fix this?
I am getting the exact same error in 2017.
cannot call methods on igEditorFilter prior to initialization; attempted to call method 'remove'
getting this error wtij jquery 2.2 as well
Is it fixed?