Class SortRequest
Represents a sorting definition requested by the grid.
Inherited Members
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.Grids.dll
Syntax
public class SortRequest
Remarks
Instances of this class are provided through Sort and describe how the returned records should be ordered.
Constructors
SortRequest()
Declaration
public SortRequest()
Properties
Comparer
Gets or sets the comparer associated with the sort operation.
Declaration
[JsonPropertyName("comparer")]
public object? Comparer { get; set; }
Property Value
| Type | Description |
|---|---|
| object | An object representing a custom comparer, or null when no comparer is specified. |
Remarks
This property can be used to carry comparer information when a custom sorting implementation is required.
Direction
Gets or sets the sort direction.
Declaration
[JsonPropertyName("direction")]
public string? Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the requested sort direction,
such as |
Name
Gets or sets the name of the field to sort.
Declaration
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the field name, or null if no field is specified. |