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

GridView sort only current page

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Krati
Top achievements
Rank 1
Krati asked on 10 Nov 2016, 09:31 AM

Hello,

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!
Thanks,

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 10 Nov 2016, 09:51 AM
Hi,

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.

Regards,
Ivan Ivanov
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
GridView
Asked by
Krati
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or