New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

The event arguments passed when RadGrid sorts happens.

Definition

Constructors

C#
public GridSortCommandEventArgs(GridItem item, object commandSource, object argument, GridSortOrder oldSortOrder, GridSortOrder newSortOrder)
Parameters:itemGridItemcommandSourceobjectargumentobjectoldSortOrderGridSortOrdernewSortOrderGridSortOrder
C#
public GridSortCommandEventArgs(GridItem item, object commandSource, object argument)
Parameters:itemGridItemcommandSourceobjectargumentobject

Properties

Gets the new sort order of the current sort expression.

C#
public virtual GridSortOrder NewSortOrder { get; }
Property Value:

The new sort order of the current sort expression.

Gets the old sort order of the current sort expression.

C#
public GridSortOrder OldSortOrder { get; }
Property Value:

The old sort order of the current sort expression.

Gets the sort expression associated with the performed sorting.

C#
public string SortExpression { get; }
Property Value:

The sort expression associated with the performed sorting..

Methods

Executes the command associated with the sort event.

C#
public override void ExecuteCommand(object source)
Parameters:sourceobject

Overrides: GridCommandEventArgs.ExecuteCommand(object)