GridView sort only current page

2 posts, 0 answers
  1. Krati
    Krati avatar
    1 posts
    Member since:
    Nov 2016

    Posted 10 Nov 2016 Link to this post


    I have a GridView with large number of data. I am using Datapager for pagination having 100 records per page. On click of next page I download the next 100 records.

    Problem :- Inbuilt sorting, sorts the whole gridview but I want to sort only the current page not the whole grid, as other pages may not have data.

    While sorting with other pages as blank, results in null values shown up at the top of the grid.


    Any help appreciated!

  2. Ivan Ivanov
    Ivan Ivanov avatar
    1218 posts

    Posted 10 Nov 2016 Link to this post


    You can use a similar approach to the one demonstrated in this example: demos > GridView > Paging before grouping. You need to declare a class deriving from QCV and override its CreateView method, switching the order of Sorting and Paging logic.

    Ivan Ivanov
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top