Getting a "cannot call methods on igEditorFilter prior to initialization: attempted to call method 'remove'" error when trying to update a hidden column cell.
<table id="grid"></table>
$("#grid").igGrid({
primaryKey: "HiddenID", autoCommit: true, columns: [{ headerText: "HiddenID", key: "HiddenID", dataType: "number", hidden: true }, { headerText: "Date", key: "Date", dataType: "string" }, { headerText: "Comments", key: "Comments", dataType: "string" }, { headerText: "Hidden Column", key: "HiddenCol", dataType: "string", hidden: true } ], features: [{ name: "Updating", editMode: "row", editRowEnding: function (evt, ui) { if (ui.rowID > 0) $("#grid").igGridUpdating("setCellValue", ui.rowID, "HiddenCol", "testing"); } }] });
Hi, dtwilliams
Does using editRowEnded instead of editRowEnding event work for you? I'm not reproducing the issue using editRowEnding.
Thanks, Deyan
Hello dtwilliams,
I am just following up and see if you need further assistance.
If you have any questions, please do not hesitate to let us know.
Hello,
I created a small sample using the editCellEnded event and calling setCellValue in its handler doesn't seem to cause any issues. Please, find it attached to this post. It'll be helpful if you could modify the sample so the issue you are experiencing is reproduced so I can take another look.
Thank you for using Infragistics forums!
Best regards,
Stamen Stoychev
it doesn't work on cellEnded either.
I've had to create my own validation function outside of the gridUpdating events that loops through all rows in my grid datasource. Seems to do what I want but not ideal.
The exception is not caused by the jQuery version. The reason for it is a recent change in how visual changes are applied at a cell level after an update. They made this scenario unsupported. You should still be able to call "setCellValue" on editCellEnded though. Are there any specific reasons you wish to update the other cell on the "-ing" event?
I'm still having this issue. I see from another post (http://ko.infragistics.com/community/forums/p/87874/449491.aspx) that the version of jquery UI might affect this.
I'm trying to do the following
$(document).delegate("#grid", "iggridupdatingeditcellending", function (evt, ui) {
$("#grid").igGridUpdating("setCellValue", ui.rowID, "colName", "colValue");
});
Are there any plans to fix it or can you recommend a version of jQuery and jQuery UI that works with everything?