This is a migrated thread and some comments may be shown as answers.

'All Items per page' value being overridden

3 Answers 498 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AGB
Top achievements
Rank 1
Iron
AGB asked on 05 Apr 2016, 11:17 AM
Hi Guys,

Have just tripped over the following issue with the 'items per page' dropdown overriding the 'All' setting with the total number of records.

To see the problem in action run the following dojo

        http://dojo.telerik.com/EZevo
        
- Set the 'items per page' to 'All'

- Now filter the Freight column to show items greater than 32 and less than 33 which now shows 1 - 12 of 12 items
  But the 'items per page' dropdown now shows 830 instead of 'All'
 
- Reset the dropdown to 'All' and clear the filter and the 'items per page' value gets set to 12

To my mind this seems wrong if I have set the dropdown to 'All' it should not get overridden with the total number of records of the previous filter.

Regards
Alan

3 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 06 Apr 2016, 08:20 AM
Hi Alan,

The "All" option just sets the page size to the current total number of items.
The behavior that you are looking for (always showing all items at any case) is to turn off the paging.

Regards,
Vasil
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
AGB
Top achievements
Rank 1
Iron
answered on 06 Apr 2016, 09:08 AM
Hi Vasil

I appreciate what you are saying but it is very confusing to a user.

If they have selected 'All' they want to see all entries and don't expect the combo box value to be constantly changing every time they create/clear a filter which they have to reset to 'ALL' and hence causing another call to the server.

To me this is a bug/design flaw ... What does the community think ?

If you don't see it this way how would you overcome the issue so that 'ALL' does not get reset on a filter change.

Regards
Alan

0
Vasil
Telerik team
answered on 06 Apr 2016, 11:35 AM
Hi Alan,

The value does not change, it stays the same as number. The dropdown will show "all" when items in the grid mach the page size exactly. But not if they are less or more.

For example: if you have 1000 records, and you set PageSize = 10. Then filter such way to leave only 10 items, you will end up seeing "All" in the dropdown, because the page size is 10 and the items are 10.

I understand it could be misleading for your clients, if this is the case, remove the "all" option, and place some big number in the dropdown, or disable the paging.

Regards,
Vasil
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
AGB
Top achievements
Rank 1
Iron
Answers by
Vasil
Telerik team
AGB
Top achievements
Rank 1
Iron
Share this question
or