Hi, I am trying to delete a row in a WebHierarchicalDataGrid and I cannot figure out how to disable the auto postback that occurs. All I want to do is remove the row from grid on the client. I do not want any request sent back to the server.
I am following the client code from http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Editing-and-Selection/Delete-Rows-Basic-Features/Default.aspx?cn=data-grid&sid=8ad22332-bd3a-4fdf-ba35-e3f4d8c49b9b which has the following line:
grid.get_behaviors().get_editingCore().get_behaviors().get_rowDeleting().deleteRows(rows);
When this line gets executed in my code a postback occurs. The only thing even close that I have found to disable anything is to attach into the client side row deleting handler and set the eventArgs.Cancel property to true. The problem with that is the row never gets deleted since I just canceled the entire row deletion operation. This is very frustrating. I just want to delete a row on the client.
Hi bartsipes,
you could use Batch Updating http://samples.infragistics.com/aspnet/Samples/WebHierarchicalDataGrid/EditAndSelection/BatchUpdating/Default.aspx?cn=hierarchical-data-grid&sid=29a3e22c-ccc7-4214-a7bb-006c13c7b0ea
Hope this helps
Thanks for the idea, but that only marks the row for deletion and adds an undo button that I do not want.