Hi,
I am trying to add a new row. And to add this I have:-
securityOnlyModel.igGridUpdating("endEdit", true); securityOnlyModel.igGridUpdating("option", "enableAddRow", true); securityOnlyModel.igGridUpdating("startAddRowEdit", true);
Now I have a delete button on newly added row. If I click add a row and then I want to delete it without adding it to my table. For this I am doing something like this:-
var removeSecurity = function(rowId) { var grid = jQuery("#securityOnlyModel").data("igGrid");
if(rowId === undefined) { jQuery("#securityOnlyModel").igGridUpdating("option", "enableAddRow", false); jQuery("#securityOnlyModel").igGridUpdating("endEdit", true); } grid.dataSource.deleteRow(rowId); grid.commit(); };
Now the problem is after deleting the row if I click anywhere on the remaining rows to edit them, I am getting this error:-
Uncaught Error: cannot call methods on igEditorFilter prior to initialization; attempted to call method 'option'
Please help me on this.
Thanks,
Mohan
Hello Mohan,
Thank you for contacting Infragistics!
I have some questions concerning this matter:
What version are you using?How are you setting up the grid?What scripts are you loading?Do you have an isolated sample you can share?
Hi Mike,
Thank you for your reply. Please find attached zip archive for sample of my code.