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 IActionTarget representing the sorting target, typically identified by Name or Name. |
|
System.String
sortingExpression
The expression used to determine the sorting order. |
SortingAction(IActionTarget[], String)
Declaration
public SortingAction(IActionTarget[] targets, string sortingExpression)
Parameters
|
IActionTarget[]
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)
TODO: Add documentation.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
|
Returns
|
System.Boolean
|
Overrides
Equals(SortingAction)
TODO: Add documentation.
Declaration
public bool Equals(SortingAction other)
Parameters
|
SortingAction
other
|
Returns
|
System.Boolean
|
GetHashCode()
TODO: Add documentation.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
|