Progress® Telerik® Reporting R2 2017

How to: Add sorting to Report

To define a sorting for the Report item use the following steps:

Adding sorting to Report using Report Designer

  1. Click the Report selector button located in the upper left hand of the Report Designer. This makes the report active in the Properties window.
  2. Click the Sorting ellipsis.
  3. For each sort expression, follow these steps:

    1. Click New.
    2. Type or select an expression by which to sort the data.
    3. From the Direction column drop-down list, choose the sort direction for each expression. ASC sorts the expression in ascending order. DESC sorts the expression in descending order.

  4. Click OK.

Adding sorting to Report Group using Report Designer

  1. Open the Group Explorer window.
  2. Click the Report selector button located in the upper left corner of the Report Designer. This makes the report active in the Group Explorer window.
  3. Choose a Report Group and click its Sorting ellipsis.
  4. For each sort expression, follow these steps:

    1. Click New.
    2. Type or select an expression by which to sort the data.
    3. From the Direction column drop-down list, choose the sort direction for each expression. ASC sorts the expression in ascending order. DESC sorts the expression in descending order.

  5. Click OK.

Adding sorting to Report programatically

C#
Telerik.Reporting.Sorting sorting1 = new Telerik.Reporting.Sorting();
sorting1.Expression = "=Fields.ProductID";
sorting1.Direction = Telerik.Reporting.SortDirection.Asc;

report1.Sortings.Add(sorting1);

VB
Dim sorting1 As New Telerik.Reporting.Sorting()
sorting1.Expression = "=Fields.ProductID"
sorting1.Direction = Telerik.Reporting.SortDirection.Asc

report1.Sortings.Add(sorting1)

See Also