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

How do I set the default sorting for a RadGrid with client-side data binding and sorting?

0 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike Chabot
Top achievements
Rank 1
Mike Chabot asked on 11 Jun 2012, 07:19 PM
A SortExpression set on the server seems incompatible with a RadGrid that is populated with client-side data binding and has client-side sorting. I am wondering if there is a recommended way to identify a column that is sorted by default in this scenario?

 

For example, I want to indicate that the data comes out of the database sorted by Column A by default. If I add a SortExpression on the server, that column is shaded and has an arrow. If I try to sort by Column B using the client-side API, Column A will retain that shading and arrow supplied when the grid structure was created on the server, even though Column B is now being used for sorting and has an arrow also. If I then change the sort back to Column A, Column A gets a second arrow next to the arrow supplied on the server. 

ASP.NET AJAX 2012 Q1 SP1 controls.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Mike Chabot
Top achievements
Rank 1
Share this question
or