This question is locked. New answers and comments are not allowed.
As others I had to sort before the RadDataPager paging takes action so I solved like this:
Is that ok?
- I created the MyNorthwindContext like in the documentation
- Then I added a property with my sort, something like
publicclassMyNorthwindContext : NorthwindEntities{publicMyNorthwindContext() :base(newUri("http://services.odata.org/Northwind/Northwind.svc", UriKind.Absolute)){}publicDataServiceQuery<Category> SortedCategories{get{if((this._SortedCategories ==null)){this._SortedCategories =base.CreateQuery<Category>("Categories").AddQueryOption("$orderby","CategoryID desc");}returnthis._SortedCategories;}}privateDataServiceQuery<Category> _SortedCategories;}
- so
<telerik:RadDataServiceDataSourceName="categoriesDataSource"QueryName="SortedCategories"AutoLoad="True">
Is that ok?