I need to use the ag-grid api ensureIndexVisible() function to “ensure the row is visible”.
Currently I see no capability.
Case:
Grid A - user selects a row - the onCellClick event is invoked to my method in which I want to change grid B to a different selected record.
Current behaviour:
Grid B correctly “goes” to the different record but it is not shown if the different record is outside the visible area.
It appears that the ag-grd api ensureIndexVisible() might be the way to force the grid to scroll to the selected record.
I wonder if the grid options is the way to do this or if Servoy might have this as a feature to be implemented later…
Update:
It seems that the api has been implemented and given a name of: scrollToSelection
So having added that my code now works!
This is a little confusing having to translate ag-grid api to whatever Servoy thinks is a better name - but at least it is there.