primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Paginator should be accessible from the parent component.

Open fernandogomesdf opened this issue 10 years ago • 4 comments

It is not possible to access paginator from DataGrid/DataList. It should be possible to get the current page, and the pageChange event from the parent component, even if it is not using lazy loading. The reason for that is to keep the previous paginator state after detail a row in a new route. It should also be possible to change the page programatically from the parent component. Thank you guys for the awesome work! Fernando. #412

fernandogomesdf avatar Sep 08 '16 18:09 fernandogomesdf

I could use the property 'first' from the DataGrid, but it is protected...

fernandogomesdf avatar Sep 08 '16 21:09 fernandogomesdf

#945

huineng avatar Sep 27 '16 20:09 huineng

Agree this would be very useful - we have a similar scenario, where select a row item from say page 3, and navigate to a child route to edit that item. Then on routing back to the grid page we want to select page 3 again by default.

Currently working around this by accessing the DataTable as a ViewChild and calling the paginate function (with first/rows parameters) to select the desired page.

garthmason avatar Nov 16 '16 07:11 garthmason

First and Rows properties should allow access already.

cagataycivici avatar May 31 '17 07:05 cagataycivici