I have the following scenario :
Grid has wdd editor provider, on the SelectionChanging it validates some values and offer user to finalize or cancel changes. If finalized chosen then through pagemethod.myFunction runs stored procedure on the back end to make some adjustments. Here little problem to address, when it comes back the value in the editor provider is changed but in the grid and underlying DS it will change only after user will leave current row.
What is the best way to trigger another postback from the function that is called by pagemethods.myFunction upon success so on the client row get changed, postback initiated and RowUpdating fired on the server.
Thanks
Hello mcseidel,
You could call commit()
var grid = $find("WebDataGrid1");
var editingCore = grid.get_behaviors().get_editingCore();
editingCore.commit();
For additional information please check this out: http://forums.infragistics.com/forums/p/57872/294912.aspx#
Still little issue : if grid has only one row... how to trigger rowupdating event that usually get fired when user chose another row. What would trigger rowUpdating in this case .
Sorry, never mind seems just set another cell active works and rowupdating get fired. :
var grid = $find("wdglr4Uno"); var ri = grid.get_behaviors().get_activation().get_activeCell().get_row().get_index() var nexRowCell = grid.get_rows().get_row(ri + 1).get_cellByColumnKey("FRCODE"); grid.get_behaviors().get_activation().set_activeCell(nexRowCell)