ag-grid setSelectedIndex and pagination

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

ag-grid setSelectedIndex and pagination

Postby rick.eddy » Wed Nov 01, 2023 7:35 pm

Hi there.

We have a form with an ag-grid on it.
We also have a popup form to create new records into the table that is the grid's foundset. One of the things we had done after insert is to reload the foundset and set the foundset's selected index to the newly created record and use the scrollToSelection method to see the new row. This is working great.

We had a request to add pagination for this grid now. That was easy enough to figure out. Where the issue is that, while I can still set the foundset's selected index, if this selected foundset record is not viewable on the current page... I can't seem to find a way to display the page where this record would be. I was hopeful that the scrollToSelection would know that paging is on, and what page the foundset's selected record was on and navigate for me. Is this just not possible to do while using pagination?
rick.eddy
 
Posts: 6
Joined: Tue Apr 11, 2023 7:12 pm

Return to Programming with Servoy

Who is online

Users browsing this forum: Bing [Bot] and 26 guests