How do you set the start page using a server side data source
Asked Answered
V

1

6

Using angular and a server side data source, I want to be able to load the grid at a specific page number. This will help me support the user using the back button as they go from list pages (aggrid) to detail pages.

I've discovered paginationGoToPage() but it doesn't seem to work in onGridReady, it only works if i use it on a button click. But even if I do use it, it seems like the data would have to be loaded twice, once when the grid is first rendered and then again for the particular page I want to go to.

Vive answered 19/9, 2019 at 23:48 Comment(0)
D
1

You can use paginationGoToPage() in onFirstDataRendered() event. Still, the data will be loaded twice, but it looks like no better option so far. It looks like this feature should be requested from AgGrid team.

Devious answered 15/1 at 9:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.