I'm unable to delete rows client-side using 2013.2. Among other things, I've tried the
grid.get_rows().remove(row) and it leaves the row as it is and visible. This is despite have editing core behavior added, and I even tried adding the delete behavior. I have batching turned on since I don't want postbacks/rebinding on every action. I had to fall back to how some posts in the forums suggested, by hiding the row with
$(row.get_element()).css('display', 'none')
This hides the row, but the alternating grid row colors now don't alternate since the grid counts that invisible row.
rebones,
Have you tried the suggestion in this post (http://ko.infragistics.com/community/forums/t/73137.aspx) : grid.get_behaviors().get_editingCore().undoBatchUpdate(row); ?
That's where I got the idea to hide the row. Unfortunately that doesn't remove the row. It seems to just undo an add operation if you weren't bound on the server.
I populate my grid with results 1-5, render it to the user. The user may want to delete #3 and add #6. I don't want a postback for every operation since this grid is only displaying a subset of data for the entire page's data. I only want a postback when the user clicks Save and I can handle all my CRUD operations in a Save method.
What was suggested (and I tried it anyway despite it being unintuitive), would seem to only affect rows that got added under the conditions described in that thread and doesn't allow you to delete a row in the grid that was populated on the server. Despite that, I gave it a try and as I mentioned in my reply, it does not work.