Default Sorting

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

    Posted 07 Mar 2011 Link to this post

        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 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.

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

    Also take a look at this documentation.
  3. konnyaku
    konnyaku avatar
    7 posts
    Member since:
    Jul 2018

    Posted 04 Oct 2018 Link to this post

    Better yet, use SortCommand from RadGrid.
Back to Top