menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GanttSortSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GanttSortSettings

    Configures the sort settings of the Gantt.

    Inheritance
    System.Object
    GanttSortSettings
    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()

    Triggers during the initial rendering of the component.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    OnParametersSetAsync()

    Called by the framework when component parameters have been set. Executes logic that depends on the updated parameter values.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task

    UpdateChildProperties(String, Object)

    Updates the specified property of the component with the given value. Currently supports updating the Columns property.

    Declaration
    public void UpdateChildProperties(string key, object value)
    Parameters
    Type Name Description
    System.String key

    The name of the property to update.

    System.Object value

    The value to assign to the property.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved