I have a Grid bound to a DataSource via MVVM.
I select a row in the Grid, accordingly I use this:
grid = e.sender;
rowSelected = grid.dataItem(grid.select());
Where "currentAccount" holds the currently selected row.
Now, when I do changes on the form fields, they are not being automatically reflected on Grid. I need to call grid.refresh() for the changes to show on grid.
However, when user presses a button "Add new record", I use this:
._makeAccountModel( 0 ) );
// add new row to data source => reflected on grid
// set new row added as the current account
row = input_map.grid().find(
+ newRow.uid +
// find the row added into grid
// select the row added
Above, I am adding a new empty row. Once I start editing the Form fields, automatically they are being reflected on the Grid without having to call grid.refresh.
Any idea why this behavior?