Hi,
I use cellediting behaviour. If my grid contains more than one row I get the rowupdating event if the user switches from row to row. Sometimes my grid only contains a single record and I never receive a RowUpdating event.
Do you have a solution/workaround?
Roland
Hi Ronald,
You can trigger the update your cell in JS, when the user finishes editing the last cell, by handeling the ExitedEditMode client event, and doing the following in the event handler:
function exitedEditMode(grid, args){ var cell = args.getCell(); var column = cell.get_column(); var editBehavior = grid.get_behaviors().get_editingCore(); //.get_behaviors().get_cellEditing(); if (column.get_visibleIndex() == grid.get_columns().get_length() - 1) editBehavior.commit();}
Thanks,
Olga
Thanks for the quick answer
This part of the forums is for WebDataGrid, and you are using UltraWebGrid (or WebGrid), which is a different control, please repost your question on the WebGrid forum, which can be found at
https://ko.infragistics.com/community/forums/f/retired-products-and-controls/tags/UltraWebGrid%20(Retired)
Thank You,Olga
I've tried the code above and it doesn't seem to execute. My grid has been set to LoadOnDemand="Xml". I handle both the UpdateRow and AddRow events in the code behind.
The issue that I amtrying to resolve is as follows:
I thought that by handling the event on the clientside I would be able to force the save.
Is there any way of handling this?
Thanks again