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

Grid Sort Expression

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
basel99
Top achievements
Rank 1
basel99 asked on 05 May 2008, 08:51 AM
Dear Telerik,
How can i know the sort expression the grid is sorted in it.


i need the grid to return the sort expression the grid is sorted in it...


Thanks in advance...

Basel

2 Answers, 1 is accepted

Sort by
0
Bodevain Svensson
Top achievements
Rank 1
answered on 05 May 2008, 08:54 AM
I can think of two methods, Basel:

1) Check the values from the SortExpressions collection of the master table to see which columns are filtered at that time
2) Subscribe to the SortCommand event of the grid where to determine the new sort order and the sort expression access the second argument in the handler.

Bodevain
0
Shinu
Top achievements
Rank 2
answered on 05 May 2008, 10:01 AM
Hi,

Go through the help atricle.
Sorting expressions

Shinu.
Tags
Grid
Asked by
basel99
Top achievements
Rank 1
Answers by
Bodevain Svensson
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or