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
1460
Can't delete/remove rows or track changes
posted

I need to delete/remove rows client-side and track changes. I'm using 2013.2 

How can I track added/modified/deleted rows when the page is posted back?  How can I delete rows client-side?

I have bound records to the grid, and I am able to add/edit records and their changes are reflected in the grid.   I have batching turned on since I don't want a postback on every action.  I just want to be able to add/edit/delete client-side, and then save the entire page on a single postback without having to handle rowAdding, rowAdded, rowDeleting, rowDeleted, etc...  I just want my one single save method called from the Save button's click. 

Since the WebDataGrid apparently cannot track the changes, I had to add a hidden column called DataStatus and on each action, describe what was done "Added", "Modified", "Deleted".  The old UltraWebGrid had a DataChangedStatus on each row so you could process it correctly.  Now it seems like the Akido controls want you to wire everything up and have 50+ postbacks per page.  If there's a way to track changes without handling those rowAdding, etc... events (which aren't feasible anyway), then I'd love to hear it.

I've also tried removing rows, but nothing removes them client-side and I've seen where people are hiding them using css, which breaks the css for alternating rows.  How can I remove/delete a row client-side without a postback?