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
895
Delete Button with Batch Updating
posted

Hi,

 I am trying to get my webdatgagrid to use Batch Updating. In the past, I allowed it use postbacks to commit the rows to the server. I have been playing around with the webdata grid. One feature I currently have is a delete button in one of the columns.

I saw this example:

http://es.infragistics.com/products/aspnet/sample/data-grid/row-deleting-button

I really liked it. But I notice once I turned on Batch Editing, I no longer have the delete button appearing. Can I get this feature when using BatchUpdating? If not how can I show a delete button for a row that has not been commited back to the server? I am able to press the delete key on my keyboard and the undo button does appear. But the common user will never get that. So i need to be able to display something obvious. 

Any Suggestion?

Parents
No Data
Reply
  • 895
    posted

    I did some more testing. When I first load the datagrid. 99% of the time its going to load empty. I use a row edit template to add a row. (W/ Batch Updating). The row is added to grid but not commtted. At this point, I do not get the delete button.

    I do a post back and return to the grid. I then get the delete button. I can add a new non committed row and the delete  button is there.

    It appears that the problem is when I first add rows without a post back. 

    To add the new row I run this line in javascript..

    grid.get_behaviors().get_editingCore().get_behaviors().get_rowAdding()._commitRow();

    Does anyone know what I am missing? 

Children