• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SortingAction

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

Inheritance
System.Object
SortingAction
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
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()

Creates a new instance of the SortingAction class.

Declaration
public 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
System.Object.Equals(System.Object)

Equals(SortingAction)

Declaration
public bool Equals(SortingAction other)
Parameters
SortingAction other

Returns
System.Boolean

Implements
System.IEquatable<T>.Equals(T)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.