I am working on a project which requires working with tables and editing them. What I do is:
run a query and populate the table
run an update query to edit the data in the table
refresh the binding “props.data”
If user scrolls down in the table and makes a change, then after refreshing the data binding the table scrolls all the way to the top. User has to go back to the position where he made the change.
Is there a way to prevent that from happening or can I make the table scroll to the position of selected row?
Well that is very unfortunate. Can you think of any way around it?
I was thinking not using refreshBinding after user edits a row. I might update only the edited row. If I know the index of the dictionary in the list I might run a SELECT for that row and then assign values returned as follows data[n] = {“row”:“items”}.
The thing is, that table will be edited and viewed by multiple users at the same time and they would not see edits by other users in the real time.