Class GanttSortSettings
Configures the sort settings of the Gantt.
Inheritance
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttSortSettings : ComponentBase
Constructors
GanttSortSettings()
Declaration
public GanttSortSettings()
Properties
AllowUnsort
Gets or sets a value indicating whether sort the gantt by clicking on the sorted column header.
Declaration
public bool AllowUnsort { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value that is set to true by default, which means the user can sort the Gantt in any order by clicking on the sorted column header. |
Remarks
Set this property to false to prevent the user from getting the Gantt in an unsorted state by clicking on the sorted column header.
Columns
Gets or sets the columns to sort at the initial rendering of the Gantt control and allows the user to get the currently sorted columns.
Declaration
public List<GanttSortDescriptor> Columns { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<GanttSortDescriptor> | A list of GanttSortDescriptor objects that defines the columns to sort at the initial rendering of the Gantt control. |
Remarks
To specify columns for initial sorting, create one or more GanttSortDescriptor objects and add them to the Columns list. The sort order of the columns is determined by the order in which they are added to the list. To get the currently sorted columns, retrieve the Columns list and examine the properties of the GanttSortDescriptor objects it contains.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |
UpdateChildProperties(String, Object)
Declaration
public void UpdateChildProperties(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Object | value |