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

[Solved] DataPager + RadGrid + DomainDataSource not sorting correctly when sorting from a page other than the first.

1 Answer 128 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris Jones
Top achievements
Rank 1
Chris Jones asked on 12 Nov 2009, 11:11 PM

I have a RadGrid that is bound to a DomainDataSource with a LoadSize and PageSize of 20. I also have a DataPager that is bound to the RadGrid’s ItemsSource with a PageSize of 20. The problem that I’m experiencing is that the RadGrid sorts fine when the user initiates the sort from the first page. But a sort initiated from any page other than the first page gives unexpected results.

For example, if I initiate the sort from the third page - the pager resets to the first page, which is acceptable, but the grid is not properly sorted. It appears that it is partially sorted (starting on the page after the page I was on when I initiated the sort). However, all of the records that were previously leading up to that page are not sorted. So for this example, pages 1-3 would be unsorted and pages 3-X would be sorted.

Thanks,
Chris

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Nov 2009, 12:40 PM
Hello Chris,

I've tried this and indeed I've managed to reproduce the issue with standard MS DataGrid - most probably the problem is deeply in the core RIA services since all queries sent to server are correct.

I've attached an example project for reference (actually modified version on the project from one of my latest blog post).

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Chris Jones
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or