Posted 4 January 2021, 7:57 pm ESTHello,
we are using flexgrid with odatacollection in our application.
And we are using this scenario:
- user change grid's cell
- i'm listenening cellEditEnded event
- in this event i'm checking what cell was changed and if some condition is filled I'm taking new value and update another cell's content with this new value (some cells in grid must be synchronized)
- for this copying I'm using contruct:
//find item from odatacollections to be updated
this.itemsSource.editItem(iteratedItem); //edit the item
//fill attributes of item
this.itemsSource.commitEdit(); //commit changes
- this code works but calling editItem method causes selecting the grid's row which is binded to the item
So my question - is there another (better) way, how to update odatacollection's items without using editItem? this changes must be reflected in grid.