'All Items per page' value being overridden

4 posts, 0 answers
  1. AGB
    AGB avatar
    71 posts
    Member since:
    Sep 2014

    Posted 05 Apr 2016 Link to this post

    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
  2. Vasil
    Admin
    Vasil avatar
    1641 posts

    Posted 06 Apr 2016 Link to this post

    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!
     
  3. AGB
    AGB avatar
    71 posts
    Member since:
    Sep 2014

    Posted 06 Apr 2016 in reply to Vasil Link to this post

    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

  4. Vasil
    Admin
    Vasil avatar
    1641 posts

    Posted 06 Apr 2016 Link to this post

    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!
     
Back to Top