ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Rename or condense paging/pagination and tutorials 214 and 215

Open c0bra opened this issue 12 years ago • 16 comments

So now there's two feature modules, "paging" and "pagination". That's going to be really confusing for our users.

Can these be combined into one? Or at least renamed if they accomplish two separate things?

c0bra avatar Nov 14 '14 19:11 c0bra

+1 Here is the first user confused about that. I use the pagination for client-side paging. However, I tried to turn off pagination for one table in my App, but gridOptions.enablePagination=false doesn't seem to work. Should I switch to paging ?

bhochberger avatar Nov 15 '14 16:11 bhochberger

Hi I am trying to use the paging stuff shown on the tutorial page but it appears that ui.grid.paging is not available yet in 3.0.0-rc.16 is this correct?

wgorder avatar Nov 17 '14 20:11 wgorder

@wgorder: when it works on the tutorial page it should also work for you. The plunker also works (Note: it works! I didn't say that it is good-looking :) ) Maybe you should post your code on stackoverflow?!

bhochberger avatar Nov 18 '14 07:11 bhochberger

@nabinca

The module is defined in src/features/paging/js/ui-grid-paging.js in the master branch. What I am saying is that if you pull in 3.0.0-rc.16 from bower you get a single ui-grid.js file. And the ui.grid.paging module is not defined in there anywhere. This leads me to believe that this feature is not yet available in the latest release that can be obtained from bower.

See here: https://github.com/angular-ui/ui-grid.info/tree/v3.0.0-rc.16/release/3.0.0-rc.16

wgorder avatar Nov 18 '14 19:11 wgorder

The two modules are doing more or less the same. While "paging" provides pagination controls, "pagination" provides a public API so the pagination controls may be implemented externally. If that API would be moved to paging, you could probably drop the pagination module.

Do you want me to investigate that and work out a PR? If yes, should the combined module be called "paging" or "pagination"?

derrabus avatar Nov 19 '14 13:11 derrabus

Yes, I think that would be useful. I'd call it pagination personally, not sure if others have a different opinion.

PaulL1 avatar Nov 19 '14 21:11 PaulL1

+1 I've just tried to implement my own pagination controls with an external pagination and it's really confusing. If I understood right, it's not possible at the moment to use the pagination API with the paging module, right ?

geekuillaume avatar Dec 02 '14 10:12 geekuillaume

+1

delijah avatar Dec 08 '14 12:12 delijah

I am currently using an unstable version of ui-grid and it has the paging module included. Personally, I prefer paging over pagination since much of the work is already done for you. One good thing about the current paging module, sorting works over the entire collection, not just for what's currently being displayed. Filtering, on the other hand, works on page data only.

bamab avatar Dec 08 '14 13:12 bamab

Completed.

PaulL1 avatar Jan 14 '15 21:01 PaulL1

Thanks, @PaulL1. But is pagination a function only in the unstable version?

blaiseliu avatar Feb 03 '15 16:02 blaiseliu

Potentially so, yes.

Sent from my iPad

On 4 Feb 2015, at 5:56 am, Blaise Liu [email protected] wrote:

Thanks, @PaulL1. But is pagination a function only in the unstable version?

— Reply to this email directly or view it on GitHub.

PaulL1 avatar Feb 03 '15 17:02 PaulL1

Any chance, we can get a new release soon?

derrabus avatar Feb 04 '15 11:02 derrabus

Refer #2545

PaulL1 avatar Feb 04 '15 17:02 PaulL1

I see. Replace "release" with "release candidate" in my question. ;-)

derrabus avatar Feb 05 '15 10:02 derrabus

The next release candidate we're aiming for having all the hi-pri bugs fixed. We're close, but there are a few that still need doing: https://github.com/angular-ui/ng-grid/issues?q=is%3Aopen+is%3Aissue+label%3A%22Hi-Pri+Bug%22

PaulL1 avatar Feb 05 '15 18:02 PaulL1