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

Default Sorting

2 Answers 2327 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karthi
Top achievements
Rank 1
Karthi asked on 07 Mar 2011, 12:46 PM
Hi, 
    I am using Telerik Rad Grid. I want my first column to be sorted by default in decending order and then by second column. Kindly help me to acomplish this.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Mar 2011, 01:01 PM
Hello Karthi,

The following code snippet shows how to set Default sorting in RadGrid.

ASPX:
<MasterTableView CommandItemDisplay="Top" DataKeyNames="EmployeeID">
    <SortExpressions>
        <telerik:GridSortExpression FieldName="FirstName" SortOrder="Descending" />
    </SortExpressions>

Also take a look at this documentation.
-Shinu.
0
konnyaku
Top achievements
Rank 1
answered on 05 Oct 2018, 03:54 AM
Better yet, use SortCommand from RadGrid.
Tags
Grid
Asked by
Karthi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
konnyaku
Top achievements
Rank 1
Share this question
or