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

Default sorting Multiple values

1 Answer 177 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karthi
Top achievements
Rank 1
Karthi asked on 11 Mar 2011, 08:06 AM

I have a column in my rad grid that displays image when LastUserActivity < MostResentUpdate. I want that column to be sorted by default. What should i give in the sort expression in the fieldname..

<SortExpressions>
     <telerik:GridSortExpression FieldName="??????"/>
</SortExpressions>



Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Mar 2011, 03:09 PM
Hello Karthi,

FieldName property in the GridSortExpression object is the field to sort by. This should be the name of a single field from the data source. To sort by multiple fields, add additional GridSortExpression objects to the collection. More information is available here:
http://www.telerik.com/help/aspnet-ajax/grid-sorting-expressions.html

All the best,
Pavlina
the Telerik team

 

Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Karthi
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or