alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class KanbanColumn

    Defines the Kanban board column and their properties such as header text, key field, template, allow toggle, expand or collapse state, min or max count, and show or hide item count.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    SfDataBoundComponent
    KanbanColumn
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.GetEffectivePlatform()
    SfBaseComponent.GetMainComponentPlatform()
    SfBaseComponent.IsMainLicenseComponent()
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicense()
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    SfDataBoundComponent.OnAfterRenderAsync(bool)
    SfDataBoundComponent.SetDataManager<T>(object)
    Namespace: Syncfusion.Blazor.Kanban
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class KanbanColumn : SfDataBoundComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    The KanbanColumn class provides options to manage the state and behavior of Kanban columns within a Blazor application.

    Constructors

    KanbanColumn()

    Declaration
    public KanbanColumn()

    Properties

    AllowAdding

    Gets or sets a value indicating whether an add button is enabled in the column.

    Declaration
    [Parameter]
    public bool AllowAdding { get; set; }
    Property Value
    Type Description
    bool

    true if adding cards is permitted; otherwise, false.

    Remarks

    When enabled, this allows users to add new cards directly into the column.

    AllowDrag

    Gets or sets a value indicating whether items in the column can be dragged.

    Declaration
    [Parameter]
    public bool AllowDrag { get; set; }
    Property Value
    Type Description
    bool

    true if dragging items is permissible; otherwise, false.

    Remarks

    This is utilized to allow or restrict users from dragging items out of the column to other columns or lists.

    AllowDrop

    Gets or sets a value indicating whether items can be dropped into the column.

    Declaration
    [Parameter]
    public bool AllowDrop { get; set; }
    Property Value
    Type Description
    bool

    true if dropping items into the column is allowed; otherwise, false.

    Remarks

    This feature enables drag-and-drop functionality to add cards from other columns or lists.

    AllowToggle

    Gets or sets a value indicating whether the column toggle feature is enabled.

    Declaration
    [Parameter]
    public bool AllowToggle { get; set; }
    Property Value
    Type Description
    bool

    true if the column can be toggled; otherwise, false.

    Remarks

    When enabled, users can expand or collapse the column in the Kanban board.

    ChildContent

    Defines the child content of this Kanban Column.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    The rendered content inside the column.

    Remarks

    This is often used to customize the content within the Kanban column.

    Count

    Gets or sets the count of cards within the column.

    Declaration
    public int Count { get; set; }
    Property Value
    Type Description
    int

    An integer representing the number of cards in the column.

    Remarks

    This property is useful for conditional rendering or logic based on the card count.

    HeaderText

    Gets or sets the header text of the column.

    Declaration
    [Parameter]
    public string HeaderText { get; set; }
    Property Value
    Type Description
    string

    The string that represents the header title of the column.

    Remarks

    The header text is displayed at the top of the column to denote the column's purpose or status.

    Index

    Gets or sets the index order of the column.

    Declaration
    [Parameter]
    public int Index { get; set; }
    Property Value
    Type Description
    int

    An integer representing the order of the column.

    Remarks

    This determines the column's position within the Kanban board. Indexes are useful when columns need to be reordered by logic.

    IsExpanded

    Gets or sets a value indicating whether the column is expanded by default.

    Declaration
    [Parameter]
    public bool IsExpanded { get; set; }
    Property Value
    Type Description
    bool

    true if the column is expanded; otherwise, false.

    Remarks

    This property allows the column to be initially displayed in a collapsed or expanded state depending on the user's preference.

    KeyField

    Gets or sets the key field(s) of the column.

    Declaration
    [Parameter]
    public List<string> KeyField { get; set; }
    Property Value
    Type Description
    List<string>

    A list of strings representing the key(s) that categorize items in this column.

    Remarks

    These keys are used for filtering and organizing items under the appropriate column.

    MaxCount

    Gets or sets the maximum card count allowed in the column.

    Declaration
    [Parameter]
    public int? MaxCount { get; set; }
    Property Value
    Type Description
    int?

    The maximum number of cards that can be added to this column.

    Remarks

    This helps to impose a limit on the number of items that can be placed within a column, if applicable.

    MinCount

    Gets or sets the minimum card count that must be maintained in the column.

    Declaration
    [Parameter]
    public int? MinCount { get; set; }
    Property Value
    Type Description
    int?

    The minimum number of cards that should be available in this column.

    Remarks

    This feature ensures that the column meets the specified criteria concerning the minimum card count.

    ShowItemCount

    Gets or sets a value indicating whether the card count should be displayed in the column.

    Declaration
    [Parameter]
    public bool ShowItemCount { get; set; }
    Property Value
    Type Description
    bool

    true to show card count; otherwise, false.

    Remarks

    This property aids in displaying the count of cards in a column, often to analyze workflow efficiency.

    Template

    Gets or sets the template for the column.

    Declaration
    [Parameter]
    public RenderFragment<KanbanColumn> Template { get; set; }
    Property Value
    Type Description
    RenderFragment<KanbanColumn>

    A render fragment that defines the custom layout of the column.

    Remarks

    Using this template, developers can customize the appearance and layout of columns.

    TransitionColumns

    Gets or sets the transition columns of this column.

    Declaration
    [Parameter]
    public List<string> TransitionColumns { get; set; }
    Property Value
    Type Description
    List<string>

    A list of column names where cards can be moved to or from as part of a transition.

    Remarks

    Transition columns define the path items can follow across the Kanban board.

    Visible

    Gets or sets a value indicating whether the column is visible.

    Declaration
    [Parameter]
    public bool Visible { get; set; }
    Property Value
    Type Description
    bool

    true if the column is visible; otherwise, false.

    Remarks

    This setting can be used to hide columns from view without removing them from the DOM.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

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

    Overrides
    SfDataBoundComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Method invoked when the component has received parameters from its parent.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

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

    Overrides
    SfDataBoundComponent.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved