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
No Data
Reply
  • 23953
    Offline posted

    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 Pavlov
    Infragistics, Inc. 

Children