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

Hierarchy Grid - how to set sort expression

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Medac
Top achievements
Rank 1
Medac asked on 14 May 2010, 11:49 AM
Hi I have a hierarchy grid of 3 level depth. All the three details table consists of Date time column. I want set the sort expression of Date Time in descending order by default. If i set like below column is not getting sorted in descending order.

Dim

 

 

sortExpr As New GridSortExpression

 

sortExpr.FieldName =

 

PresentationConstants.DATE_LBL

 

sortExpr.SortOrder =

 

GridSortOrder.Descending

 

radgrdPatChronology.MasterTableView.DetailTables(0).SortExpressions.AddSortExpression(sortExpr)

In Design for Date Time column i have set the DatetimeFormat property.
DataFormatString="{0:MM/dd/yyyy}"

Where am I going wrong?
Please help me in sorting the Date Time column in hierarchy grid.

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 May 2010, 01:17 PM
Hello Medac,

Please verify that you rebind the grid by calling its Rebind() method to reflect the changes.

For more information about sorting expression please refer to the help articles below, which elaborate on how to achieve the desired functionality:
Sorting expressions
Controlling sorting modes

Sincerely yours,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Medac
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or