Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
Pager Records Label displays incorrect row count after changing Page Size
posted

I have an iggrid with 21 records in it.  The page size is initialized to 10 records.  It displays 10 records in the grid and the Pager Records Label says "1 - 10 of 21 records".  The user changes the page size to 50 records.  The grid displays all 21 records but the Pager Records Label doesn't get updated - it still shows "1 - 10 of 21 records" instead of "1 - 21 of 21 records.".  However if we had 169 records with the page size of 10 and we change the page size to 100 records, it updates the Pager Records Label correctly.  It only appears to happen when the page size is changed so that the total record count < page size. 

  • 17590
    Offline posted

    Hello cindylaramie,

    Thank you for posting in our community.

    I tried reproducing this behavior on my side. I crated an igGrid with 9 records. Initially the pageSize is set to 4 (less than the records count). In this case what is displayed in the page count label is: "1-4 of 9 records". Afterwards, I am changing the page size to 20(greater than the records count) and the page count label is correctly updated to show "1-9 of 9 records". I am using latest available version of Ignite UI, which currently is 17.1.20171.1012.

    Attached you will find the sample that I used to test this. Please run it on your side and let me know how it behaves. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me for further investigation.

    Please feel free to contact me if you have any additional questions regarding this matter.

    igGridPagingRecordsLessThanPageSize.zip