Class SortingAction
Represents an interactive action that toggles sorting of one or more data items and groups.
Inheritance
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class SortingAction : IAction, IEquatable<SortingAction>, IActionWithTargets
Remarks
Use this action to specify an interactive action on a report item that triggers sorting to one or more items / groups.
When this action is set on an item, the item is rendered with a sort mark in all report viewers. Clicking on that mark triggers the action.
Constructors
SortingAction()
SortingAction(IActionTarget, String)
Creates a new instance of the SortingAction class with the specified sorting target and sorting expression.
Declaration
public SortingAction(IActionTarget target, string sortingExpression)
Parameters
IActionTarget
target
The Name GroupBase.Name of the sorting target. |
System.String
sortingExpression
|
SortingAction(IActionTarget[], String)
Creates a new instance of the SortingAction class with specified sorting targets and sorting expression.
Declaration
public SortingAction(IActionTarget[] targets, string sortingExpression)
Parameters
IActionTarget[]
targets
An enumerable of Name GroupBase.Name of the sorting targets. |
System.String
sortingExpression
|
Properties
SortingExpression
Gets or sets an expression that defines the sort field
Declaration
public string SortingExpression { get; set; }
Property Value
System.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
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 GroupBase.Name GroupBase.Name 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(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
Equals(SortingAction)
Declaration
public bool Equals(SortingAction other)
Parameters
SortingAction
other
|
Returns
System.Boolean
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|