This question is locked. New answers and comments are not allowed.
I'm loading a small set of record - 12 to be exact.
I've included a pager on my grid and I've wired up the sorting event as such:
In my LinqToEntities call, I've set up a default sort:
I then set the page size to 5. Therefore, theoretically, I should have 5 records on the first, 5 on the second, 2 on that last as displayed by the following diagram:
First Page - 1, 2, 3, 4, 5
Second Page - 6, 7, 8, 9, 10
Third Page - 11, 12
However, this is what's actually displayed:
First Page - 1, 2, 3, 4, 5 (then click on the second page of the pager)
Second Page - 1, 6, 7, 8, 9 (then, click again on the first page of the page) and what shows up is:
First Page - 2, 3, 4, 5 (that's right, record one is removed from the front page; then click again on the second page):
Second Page - 1, 6, 7, 8, 9
The third page in this case only show's records 10 and 11. So, record 1 is show on two pages and one record isn't shown at all.
I've also tested this with a page size of 3.
First Page - 1, 2, 3
Second Page - 1, 4, 5
Third Page - 6, 7, 8
Fourth Page - 9, 10, 11
Again, after you click on page 2 and then back on page 1, what shows up is:
First Page - 2, 3
A record again, is missing.
I'm running the latest version of your licensed Silverlight controls.
Please advise.
I've included a pager on my grid and I've wired up the sorting event as such:
private void rgvPicks_Sorting(object sender, Telerik.Windows.Controls.GridViewSortingEventArgs e) { rgvPicks.SortDescriptors.Clear(); Telerik.Windows.Data.SortDescriptor desc = new Telerik.Windows.Data.SortDescriptor(); string sortMember = e.Column.UniqueName; if (sortMember.Equals("Ranking")) sortMember = "Score"; if (string.IsNullOrEmpty(_sortProperty) || !desc.Member.Equals(_sortProperty)) { desc.Member = sortMember; desc.SortDirection = System.ComponentModel.ListSortDirection.Ascending; } else if (_sortProperty == sortMember) { desc.SortDirection = (_sortDirection == System.ComponentModel.ListSortDirection.Ascending ? System.ComponentModel.ListSortDirection.Descending : System.ComponentModel.ListSortDirection.Ascending); } _sortProperty = desc.Member; _sortDirection = desc.SortDirection; rgvPicks.SortDescriptors.Add(desc); }In my LinqToEntities call, I've set up a default sort:
public IOrderedQueryable<vw_PicksLeaderboard> GetVw_PicksLeaderboard() { return this.ObjectContext.vw_PicksLeaderboard.OrderByDescending(p => p.Score); }I then set the page size to 5. Therefore, theoretically, I should have 5 records on the first, 5 on the second, 2 on that last as displayed by the following diagram:
First Page - 1, 2, 3, 4, 5
Second Page - 6, 7, 8, 9, 10
Third Page - 11, 12
However, this is what's actually displayed:
First Page - 1, 2, 3, 4, 5 (then click on the second page of the pager)
Second Page - 1, 6, 7, 8, 9 (then, click again on the first page of the page) and what shows up is:
First Page - 2, 3, 4, 5 (that's right, record one is removed from the front page; then click again on the second page):
Second Page - 1, 6, 7, 8, 9
The third page in this case only show's records 10 and 11. So, record 1 is show on two pages and one record isn't shown at all.
I've also tested this with a page size of 3.
First Page - 1, 2, 3
Second Page - 1, 4, 5
Third Page - 6, 7, 8
Fourth Page - 9, 10, 11
Again, after you click on page 2 and then back on page 1, what shows up is:
First Page - 2, 3
A record again, is missing.
I'm running the latest version of your licensed Silverlight controls.
Please advise.