Hi,
Is it possible to execute a bulk update in the WebGrid using Ajax instead of 1 row at a time.
Basically I want the users to be able to modify multiple rows, add new rows, even delete rows then only execute the change when the user presses the Save button.
I have tried putting it into a WARP panel and that seems to work for the most part, but there are some problems with exception handling using an ObjectDataSource, when I set the e.ExceptionHandled value to true, the WebGrid throws some strange Debug error and when you press the debug botton on it, it does nothing.
I'm using 7.3 build 1043
Thanks in advance.
You can simple bind the data in the grid without any event of the grid...
when the user clicks the save button, you go through the grid like grid.Rows and then send this new data source for the server
If that is not what your looking for try infragistics examples in http://samples.infragistics.com/2007.3/webfeaturebrowser/default.htm
grid -> row updating
Thanks for your reply.
I have however tried this method without much success using the invokeXmlHttpRequest function in the following way:
for(var rowId in grid.ChangedRows){ var row=igtbl_getRowById(rowId); grid.invokeXmlHttpRequest(grid.eReqType.UpdateRow, row, null);
}
Since there was no server side rowUpdate event associated with the gird it didn't perform the update action.
When I added the rowUpdate event to the grid it then began executing as soon as i lost focus on the row.
What I noticed also was that the Newly added rows ended up in the grid.ChangedRows instead of in the grid.AddedRows where I expected them to be.
Maybe I have to use the grid.invokeXmlHttpRequest(grid.eReqType.Custom, ?, ?); somehow, but I'm not sure how to do this.
Any help would be appreciated.
Regards