Class
SortingAction

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

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public class SortingAction : IAction

Inheritance: objectSortingAction

Implements: IAction

Constructors

SortingAction()

Creates a new instance of the SortingAction class.

Declaration

cs-api-definition
public SortingAction()

SortingAction(IActionTarget, string)

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

Declaration

cs-api-definition
public SortingAction(IActionTarget target, string sortingExpression)

Parameters

target

IActionTarget

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

sortingExpression

string

The expression used to determine the sorting order.

SortingAction(IActionTarget[], string)

An array of IActionTarget instances representing the sorting targets, typically identified by Name or Name. The expression used to determine the sorting order.

Declaration

cs-api-definition
public SortingAction(IActionTarget[] targets, string sortingExpression)

Parameters

targets

IActionTarget[]

sortingExpression

string

Properties

SortingExpression

Gets or sets an expression that defines the sort field

Declaration

cs-api-definition
public string SortingExpression { get; set; }

Property Value

string

Remarks

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

Targets

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

Declaration

cs-api-definition
public ActionTargetCollection Targets { get; }

Property Value

ActionTargetCollection

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

Equals(SortingAction)

TODO: Add documentation.

Declaration

cs-api-definition
public bool Equals(SortingAction other)

Parameters

other

SortingAction

Returns

bool

Equals(object)

TODO: Add documentation.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetHashCode()

TODO: Add documentation.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()