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
170
Delete a new added row
posted

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

Parents
No Data
Reply
  • 25665
    Offline posted

    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?

Children