Class GridSortColumn
Configures grid sort column.
Inherited Members
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.dll
Syntax
public class GridSortColumn : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
GridSortColumn()
Declaration
public GridSortColumn()
Properties
Direction
Defines the direction of sort column. Available directions are,.
- AscendingDefault. Sorts records in ascending order.
- DescendingSorts records in descending order.
Declaration
[Parameter]
public SortDirection Direction { get; set; }
Property Value
| Type |
|---|
| SortDirection |
Field
Defines the field name of sort column.
Declaration
[Parameter]
public string Field { get; set; }
Property Value
| Type |
|---|
| string |
IsFromGroup
Defines the sorted column whether or from grouping operation.
Declaration
[Parameter]
public bool IsFromGroup { get; set; }
Property Value
| Type |
|---|
| bool |
Methods
OnInitializedAsync()
Invoked during component initialization. Updates the parent grid with the current sort settings, initializes internal state fields, and triggers a UI refresh if a base parent exists.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |
Overrides
OnParametersSetAsync()
Invoked when component parameters are set or updated. Updates internal state for direction, field, and group flag if any of these values have changed.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| Task |