Completed
Last Updated: 18 Dec 2019 16:04 by ADMIN
Release 2019.R3.SP1
Boyan
Created on: 19 Jun 2019 11:25
Category: Grid
Type: Feature Request
1
By using Grid.pageable.alwaysVisible=false make the pager appear when it's needed instead of disappear when it's not needed
Currently, if you use alwaysVisbile=false, the pager disappears on each grid rendering and it's very annoying for the end user. Another strange thing about this pager is the way the logic works behind. If the rows are equal to the page number of rows, currently you'll see the pager, but in fact you don't need it. 
7 comments
ADMIN
Viktor Tachev
Posted on: 18 Jul 2019 12:01
Hi Boyan,

I understand your point. 

Nevertheless changing the way alwaysVisible works would introduce a breaking change for all users that are relying on the current behavior. 

Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Boyan
Posted on: 10 Jul 2019 07:25

Hi Martin,

I totally agree. But now alwaysVisible is implemented and you don't need showing a pager if rows are equal to page size. Even more, the old logic in the old versions required showing a pager in your scenario even if the rows were less than the page size. And if I remember correct, it was working like this. Hiding the pager was possible only by js+css. So, it's a perfect feature request :) 

Best Regards, Boyan.

ADMIN
Martin
Posted on: 10 Jul 2019 06:42
Hi,

Yes this is correct. However note that the alwaysVisible was implemented later than the pager itself and versions before it won't be able to switch back from "All" items if the pager gets hidden by default.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Boyan
Posted on: 03 Jul 2019 09:37

Hi Martin,

Yes it could be. But in this scenario I'll prefer to set alwaysVisible=true as it's the default behavior :) . Nevermind. Thanks again.

I wish you a great day, Boyan.

ADMIN
Martin
Posted on: 03 Jul 2019 09:23
Hello,

As this behavior (showing the pager even when the page size is equal to all available items) is already implemented, I can only guess what might have been the reason behind this decision. Note that the pager can control the grid page-size when it's dedicated drop down is enabled. In this case if 'all' option is selected (or number option equal to all available items) and the pager gets hidden as you expect, then the user won't be able to change the page-size again and the pager behavior won't be consistent for the different page-size options in the drop down.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Boyan
Posted on: 26 Jun 2019 11:15

Hi Martin,

Thanks for your answer.

About the second part, I've just put it in this feature request as it seems not a logical thing. I found it in the documentation, but it looks more like mistake by design. Maybe there is purpose to be like this but I couldn't catch it. 

Thanks again, Boyan.

ADMIN
Martin
Posted on: 26 Jun 2019 10:50
Hello,

I have forwarded your report to our development team.
The first part of it (the pager flickering) indeed seems conceptually not correct - we should not show the pager by default and hide it on demand (when the grid items are less than than the set page size). The correct behavior should be to show it on demand - only when the grid items are equal or more than the page size. 
The second part - the pager is shown when the grid items are equal to the page size. This behavior is by design and described in our docs here. Changing it would be a breaking change and is not considered for upcoming releases.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.