I am integrating tui.grid and when I use grid.getModifiedRows, I get the entire row back that I've changed. With grid.request('updateData') I also get back the entire row.
The issue is that I've only changed one column - this is an issue because I don't want to clobber (overwrite) other columns that I haven't modified.
I have an event bound to grid.on afterChange which gives me the desired data like this:
Unfortunately, that information is lost when I invoke grid.request('updateData') because the entire row is sent then. At this point I have to construct my own request to sync just that column of data instead of using grid.request.
Expected Behavior
grid.request's behaviour can still send the entire row of data that's been modified, but also it should include information about which columns in the row have changed, the old values of the columns, and the new values.
Version
tui-grid@^4.17.2:
Development Environment
Mac OS + Chrome
Current Behavior
I am integrating tui.grid and when I use
grid.getModifiedRows
, I get the entire row back that I've changed. Withgrid.request('updateData')
I also get back the entire row.The issue is that I've only changed one column - this is an issue because I don't want to clobber (overwrite) other columns that I haven't modified.
I have an event bound to
grid.on afterChange
which gives me the desired data like this:Unfortunately, that information is lost when I invoke
grid.request('updateData')
because the entire row is sent then. At this point I have to construct my own request to sync just that column of data instead of using grid.request.Expected Behavior
grid.request's behaviour can still send the entire row of data that's been modified, but also it should include information about which columns in the row have changed, the old values of the columns, and the new values.
I'm open to alternatives solutions.