Hi, this has to be an easy one, but I can't figure it out.
I have a grid, and other buttons or popup screens will make changes to the grid, so the updates are all done programatically. When I call
$("#igGrid").igGridUpdating('addRow', row);
the grid updates fine. But when I call
$("#igGrid").igGridUpdating('deleteRow', rowId);
the row goes italic and strikethrough. I just want the row to disappear. If other operations cause more additions and deletions I get lots of these strikethrough rows.
This grid DOES have autocommit=true, and its not bound to any server side object or anything. On another screen I've used :
$("#igGrid"+category).igGrid("widget").igGrid("dataBind");
to 'refresh' that grid, but in this case it produces an error :
Error: There was an error parsing the array data and applying the defined data schema: data is null
How do I get my grid to actually delete a row when I code 'deleteRow'?
Hello,
My best guess is that you are using autocommit: true but the option is autoCommit: true and it's an igGrid option. Please, add autoCommit: true to the list of igGrid options and see if the issue persists.
I hope this helps!
Best regards,
Stamen Stoychev
Unfortunately, no, I didn't mistype the option :
$("#igGrid").igGrid({
autoCommit : true,
primaryKey : "contactId",
scrollbars : true,
autoGenerateColumns: false,
. . . .
Anything else I can try?