Default Sorting

3 posts, 1 answers
  1. Karthi
    Karthi avatar
    11 posts
    Member since:
    Mar 2011

    Posted 07 Mar 2011 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Mar 2011 Link to this post

    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.
  3. konnyaku
    konnyaku avatar
    3 posts
    Member since:
    Jul 2018

    Posted 04 Oct 2018 Link to this post

    Better yet, use SortCommand from RadGrid.
Back to Top