New to Telerik ReportingStart a free 30-day trial

Represents an interactive action that toggles sorting of one or more data items and groups.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class SortingAction : IAction

Inheritance: objectSortingAction

Implements: IAction

Constructors

Creates a new instance of the SortingAction class.

C#
public SortingAction()

Creates a new instance of the SortingAction class with the specified sorting target and sorting expression.

C#
public SortingAction(IActionTarget target, string sortingExpression)
Parameters:targetIActionTarget

The IActionTarget representing the sorting target, typically identified by Name or Name.

sortingExpressionstring

The expression used to determine the sorting order.

An array of IActionTarget instances representing the sorting targets, typically identified by Name or Name. The expression used to determine the sorting order.
C#
public SortingAction(IActionTarget[] targets, string sortingExpression)
Parameters:targetsIActionTarget[]sortingExpressionstring

Properties

Gets or sets an expression that defines the sort field

C#
public string SortingExpression { get; set; }
Remarks:

Sorting expression sort the data that is displayed to the user after the data is retrieved from the data source.

Gets the list of sort targets which data will be sort when the action is triggered.

C#
public ActionTargetCollection Targets { get; }
Remarks:

Use this property to add / remove sorting targets of the action. To add an table group as sort target you need to add / remove the value of the of the target respectively. The used names must be unique in the report scope.

The items in this list do not accept expressions.

Methods

TODO: Add documentation.

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

TODO: Add documentation.

C#
public bool Equals(SortingAction other)
Parameters:otherSortingActionReturns:

bool

TODO: Add documentation.

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()