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
465
deleteRows AutoPostBack
posted

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.