NG Grid scroll to selected record api

Forum to discuss the new web client version of Servoy.

NG Grid scroll to selected record api

Postby pitc » Mon Nov 02, 2020 7:01 pm

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...
Tom
prospect-saas.com
pitc
 
Posts: 115
Joined: Thu Nov 14, 2019 2:22 pm
Location: Ottawa, Ontario, Canada

Re: NG Grid scroll to selected record api

Postby pitc » Mon Nov 02, 2020 7:31 pm

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.
Tom
prospect-saas.com
pitc
 
Posts: 115
Joined: Thu Nov 14, 2019 2:22 pm
Location: Ottawa, Ontario, Canada


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests