menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class KanbanBuilder - API Reference

    Show / Hide Table of Contents

    Class KanbanBuilder

    Inheritance
    System.Object
    ControlBuilder
    KanbanBuilder
    Inherited Members
    ControlBuilder.Context
    Namespace: Syncfusion.EJ2.Kanban
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class KanbanBuilder : ControlBuilder

    Constructors

    KanbanBuilder()

    Declaration
    public KanbanBuilder()

    KanbanBuilder(Kanban)

    Declaration
    public KanbanBuilder(Kanban model)
    Parameters
    Type Name Description
    Kanban model

    Fields

    model

    Declaration
    public Kanban model
    Field Value
    Type Description
    Kanban

    Properties

    HtmlAttr

    Declaration
    public IDictionary<string, object> HtmlAttr { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    ID

    Declaration
    public string ID { get; set; }
    Property Value
    Type Description
    System.String

    Output

    Declaration
    public override TextWriter Output { get; set; }
    Property Value
    Type Description
    System.IO.TextWriter
    Overrides
    ControlBuilder.Output

    Methods

    ActionBegin(String)

    Triggers on beginning of every Kanban action.

    Declaration
    public KanbanBuilder ActionBegin(string actionBegin)
    Parameters
    Type Name Description
    System.String actionBegin
    Returns
    Type Description
    KanbanBuilder

    ActionComplete(String)

    Triggers on successful completion of the Kanban actions.

    Declaration
    public KanbanBuilder ActionComplete(string actionComplete)
    Parameters
    Type Name Description
    System.String actionComplete
    Returns
    Type Description
    KanbanBuilder

    ActionFailure(String)

    Triggers when a Kanban action gets failed or interrupted and an error information will be returned.

    Declaration
    public KanbanBuilder ActionFailure(string actionFailure)
    Parameters
    Type Name Description
    System.String actionFailure
    Returns
    Type Description
    KanbanBuilder

    AllowDragAndDrop(Boolean)

    Enables or disables the drag and drop actions in Kanban.

    Declaration
    public KanbanBuilder AllowDragAndDrop(bool allowDragAndDrop = true)
    Parameters
    Type Name Description
    System.Boolean allowDragAndDrop
    Returns
    Type Description
    KanbanBuilder

    AllowKeyboard(Boolean)

    When this property is set to true, it allows the keyboard interaction in Kanban.

    Declaration
    public KanbanBuilder AllowKeyboard(bool allowKeyboard = true)
    Parameters
    Type Name Description
    System.Boolean allowKeyboard
    Returns
    Type Description
    KanbanBuilder

    CardClick(String)

    Triggers on single-clicking the Kanban cards.

    Declaration
    public KanbanBuilder CardClick(string cardClick)
    Parameters
    Type Name Description
    System.String cardClick
    Returns
    Type Description
    KanbanBuilder

    CardDoubleClick(String)

    Triggers on double-clicking the Kanban cards.

    Declaration
    public KanbanBuilder CardDoubleClick(string cardDoubleClick)
    Parameters
    Type Name Description
    System.String cardDoubleClick
    Returns
    Type Description
    KanbanBuilder

    CardHeight(String)

    Sets the height of the each card in the kanban. The string type includes pixel. When height is set with specific pixel value, then the card will be rendered to that specified height. In case, if auto value is set, then the height of the card gets auto-adjusted based on the content.

    Declaration
    public KanbanBuilder CardHeight(string cardHeight)
    Parameters
    Type Name Description
    System.String cardHeight
    Returns
    Type Description
    KanbanBuilder

    CardRendered(String)

    Triggers before each card of the Kanban rendering on the page.

    Declaration
    public KanbanBuilder CardRendered(string cardRendered)
    Parameters
    Type Name Description
    System.String cardRendered
    Returns
    Type Description
    KanbanBuilder

    CardSettings(KanbanCardSettings)

    Defines the Kanban board related settings such as header field, content field, template, show or hide header, and single or multiple selection.

    Declaration
    public KanbanBuilder CardSettings(KanbanCardSettings cardSettings)
    Parameters
    Type Name Description
    KanbanCardSettings cardSettings
    Returns
    Type Description
    KanbanBuilder

    CardSettings(Action<KanbanCardSettingsBuilder>)

    Declaration
    public KanbanBuilder CardSettings(Action<KanbanCardSettingsBuilder> cardSettings)
    Parameters
    Type Name Description
    System.Action<KanbanCardSettingsBuilder> cardSettings
    Returns
    Type Description
    KanbanBuilder

    Columns(Action<KanbanColumnBuilder>)

    Declaration
    public KanbanBuilder Columns(Action<KanbanColumnBuilder> columns)
    Parameters
    Type Name Description
    System.Action<KanbanColumnBuilder> columns
    Returns
    Type Description
    KanbanBuilder

    Columns(List<KanbanColumn>)

    Defines the Kanban board columns 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.

    Declaration
    public KanbanBuilder Columns(List<KanbanColumn> columns)
    Parameters
    Type Name Description
    System.Collections.Generic.List<KanbanColumn> columns
    Returns
    Type Description
    KanbanBuilder

    ConstraintType(ConstraintType)

    Defines the constraint type used to apply validation based on column or swimlane. The possible values are: Column Swimlane

    Declaration
    public KanbanBuilder ConstraintType(ConstraintType constraintType)
    Parameters
    Type Name Description
    ConstraintType constraintType
    Returns
    Type Description
    KanbanBuilder

    Created(String)

    Triggers after the kanban board is created.

    Declaration
    public KanbanBuilder Created(string created)
    Parameters
    Type Name Description
    System.String created
    Returns
    Type Description
    KanbanBuilder

    CssClass(String)

    It is used to customize the Kanban, which accepts custom CSS class names that defines specific user-defined styles and themes to be applied on the Kanban element.

    Declaration
    public KanbanBuilder CssClass(string cssClass)
    Parameters
    Type Name Description
    System.String cssClass
    Returns
    Type Description
    KanbanBuilder

    DataBinding(String)

    Triggers before the data binds to the Kanban.

    Declaration
    public KanbanBuilder DataBinding(string dataBinding)
    Parameters
    Type Name Description
    System.String dataBinding
    Returns
    Type Description
    KanbanBuilder

    DataBound(String)

    Triggers once the event data is bound to the Kanban.

    Declaration
    public KanbanBuilder DataBound(string dataBound)
    Parameters
    Type Name Description
    System.String dataBound
    Returns
    Type Description
    KanbanBuilder

    DataSource(Action<DataManagerBuilder>)

    Declaration
    public KanbanBuilder DataSource(Action<DataManagerBuilder> dataSource)
    Parameters
    Type Name Description
    System.Action<DataManagerBuilder> dataSource
    Returns
    Type Description
    KanbanBuilder

    DataSource(Object)

    With this property, the card data will be bound to Kanban. The card data can be passed either as an array of JavaScript objects, or else can create an instance of DataManager in case of processing remote data and can be assigned to the dataSource property. With the remote data assigned to dataSource, check the available adaptors to customize the data processing.

    Declaration
    public KanbanBuilder DataSource(object dataSource)
    Parameters
    Type Name Description
    System.Object dataSource
    Returns
    Type Description
    KanbanBuilder

    DataSourceChanged(String)

    Triggers when the grid data is added, deleted and updated.

    Declaration
    public KanbanBuilder DataSourceChanged(string dataSourceChanged)
    Parameters
    Type Name Description
    System.String dataSourceChanged
    Returns
    Type Description
    KanbanBuilder

    DataStateChange(String)

    Triggers when the grid actions such as Sorting, Paging, Grouping etc., are done. In this event,the current view data and total record count should be assigned to the dataSource based on the action performed.

    Declaration
    public KanbanBuilder DataStateChange(string dataStateChange)
    Parameters
    Type Name Description
    System.String dataStateChange
    Returns
    Type Description
    KanbanBuilder

    DialogClose(String)

    Triggers before the dialog closes.

    Declaration
    public KanbanBuilder DialogClose(string dialogClose)
    Parameters
    Type Name Description
    System.String dialogClose
    Returns
    Type Description
    KanbanBuilder

    DialogOpen(String)

    Triggers before the dialog opens.

    Declaration
    public KanbanBuilder DialogOpen(string dialogOpen)
    Parameters
    Type Name Description
    System.String dialogOpen
    Returns
    Type Description
    KanbanBuilder

    DialogSettings(KanbanDialogSettings)

    Defines the dialog settings such as template and fields.

    Declaration
    public KanbanBuilder DialogSettings(KanbanDialogSettings dialogSettings)
    Parameters
    Type Name Description
    KanbanDialogSettings dialogSettings
    Returns
    Type Description
    KanbanBuilder

    DialogSettings(Action<KanbanDialogSettingsBuilder>)

    Declaration
    public KanbanBuilder DialogSettings(Action<KanbanDialogSettingsBuilder> dialogSettings)
    Parameters
    Type Name Description
    System.Action<KanbanDialogSettingsBuilder> dialogSettings
    Returns
    Type Description
    KanbanBuilder

    Drag(String)

    Triggers when the card is dragging to other stage or other swimlane.

    Declaration
    public KanbanBuilder Drag(string drag)
    Parameters
    Type Name Description
    System.String drag
    Returns
    Type Description
    KanbanBuilder

    DragStart(String)

    Triggers when the card drag actions starts.

    Declaration
    public KanbanBuilder DragStart(string dragStart)
    Parameters
    Type Name Description
    System.String dragStart
    Returns
    Type Description
    KanbanBuilder

    DragStop(String)

    Triggers when the card drag actions stops.

    Declaration
    public KanbanBuilder DragStop(string dragStop)
    Parameters
    Type Name Description
    System.String dragStop
    Returns
    Type Description
    KanbanBuilder

    EnableHtmlSanitizer(Boolean)

    Determine whether to prevent cross-site scripting code in Kanban data entry fields.

    Declaration
    public KanbanBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
    Parameters
    Type Name Description
    System.Boolean enableHtmlSanitizer
    Returns
    Type Description
    KanbanBuilder

    EnablePersistence(Boolean)

    Enables or disables the persisting Kanban board's state between page reloads. If enabled, columns, dataSource properties will be persisted in kanban.

    Declaration
    public KanbanBuilder EnablePersistence(bool enablePersistence = true)
    Parameters
    Type Name Description
    System.Boolean enablePersistence
    Returns
    Type Description
    KanbanBuilder

    EnableRtl(Boolean)

    Enable or disable rendering component in right to left direction.

    Declaration
    public KanbanBuilder EnableRtl(bool enableRtl = true)
    Parameters
    Type Name Description
    System.Boolean enableRtl
    Returns
    Type Description
    KanbanBuilder

    EnableTooltip(Boolean)

    Enables or disables the tooltip in Kanban board. The property relates to the tooltipTemplate property.

    Declaration
    public KanbanBuilder EnableTooltip(bool enableTooltip = true)
    Parameters
    Type Name Description
    System.Boolean enableTooltip
    Returns
    Type Description
    KanbanBuilder

    EnableVirtualization(Boolean)

    When the enableVirtualization property is set to true in a Kanban, it will only render the cards that are currently visible within the viewport, and will load additional cards as the user scrolls vertically through the Kanban. This can be helpful for improving the performance of the Kanban when working with large datasets, as it reduces the number of elements that need to be rendered and managed by the browser at any given time.

    Declaration
    public KanbanBuilder EnableVirtualization(bool enableVirtualization = true)
    Parameters
    Type Name Description
    System.Boolean enableVirtualization
    Returns
    Type Description
    KanbanBuilder

    ExternalDropId(String[])

    Defines the ID of drop Kanban on which drop should occur.

    Declaration
    public KanbanBuilder ExternalDropId(string[] externalDropId)
    Parameters
    Type Name Description
    System.String[] externalDropId
    Returns
    Type Description
    KanbanBuilder

    Height(Double)

    Sets the height of the Kanban board, accepting both string and number values. The string type includes either pixel or percentage values. When height is set with specific pixel value, then the Kanban will be rendered to that specified space. In case, if auto value is set, then the height of the Kanban gets auto-adjusted within the given container.

    Declaration
    public KanbanBuilder Height(double height)
    Parameters
    Type Name Description
    System.Double height
    Returns
    Type Description
    KanbanBuilder

    Height(String)

    Sets the height of the Kanban board, accepting both string and number values. The string type includes either pixel or percentage values. When height is set with specific pixel value, then the Kanban will be rendered to that specified space. In case, if auto value is set, then the height of the Kanban gets auto-adjusted within the given container.

    Declaration
    public KanbanBuilder Height(string height)
    Parameters
    Type Name Description
    System.String height
    Returns
    Type Description
    KanbanBuilder

    HtmlAttributes(Object)

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public KanbanBuilder HtmlAttributes(object htmlAttributes)
    Parameters
    Type Name Description
    System.Object htmlAttributes
    Returns
    Type Description
    KanbanBuilder

    KeyField(String)

    Defines the key field of Kanban board. The Kanban renders its layout based on this key field.

    Declaration
    public KanbanBuilder KeyField(string keyField)
    Parameters
    Type Name Description
    System.String keyField
    Returns
    Type Description
    KanbanBuilder

    Locale(String)

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public KanbanBuilder Locale(string locale)
    Parameters
    Type Name Description
    System.String locale
    Returns
    Type Description
    KanbanBuilder

    Query(String)

    Defines the external query that will be executed along with the data processing.

    Declaration
    public KanbanBuilder Query(string query)
    Parameters
    Type Name Description
    System.String query
    Returns
    Type Description
    KanbanBuilder

    QueryCellInfo(String)

    Triggers before each column of the Kanban rendering on the page.

    Declaration
    public KanbanBuilder QueryCellInfo(string queryCellInfo)
    Parameters
    Type Name Description
    System.String queryCellInfo
    Returns
    Type Description
    KanbanBuilder

    Render()

    Declaration
    public HtmlString Render()
    Returns
    Type Description
    Microsoft.AspNetCore.Html.HtmlString

    ShowEmptyColumn(Boolean)

    Enable or disable the columns when empty dataSource.

    Declaration
    public KanbanBuilder ShowEmptyColumn(bool showEmptyColumn = true)
    Parameters
    Type Name Description
    System.Boolean showEmptyColumn
    Returns
    Type Description
    KanbanBuilder

    SortSettings(KanbanSortSettings)

    Defines the sort settings such as field and direction.

    Declaration
    public KanbanBuilder SortSettings(KanbanSortSettings sortSettings)
    Parameters
    Type Name Description
    KanbanSortSettings sortSettings
    Returns
    Type Description
    KanbanBuilder

    SortSettings(Action<KanbanSortSettingsBuilder>)

    Declaration
    public KanbanBuilder SortSettings(Action<KanbanSortSettingsBuilder> sortSettings)
    Parameters
    Type Name Description
    System.Action<KanbanSortSettingsBuilder> sortSettings
    Returns
    Type Description
    KanbanBuilder

    StackedHeaders(Action<KanbanStackedHeaderBuilder>)

    Declaration
    public KanbanBuilder StackedHeaders(Action<KanbanStackedHeaderBuilder> stackedHeaders)
    Parameters
    Type Name Description
    System.Action<KanbanStackedHeaderBuilder> stackedHeaders
    Returns
    Type Description
    KanbanBuilder

    StackedHeaders(List<KanbanStackedHeader>)

    Defines the stacked header for Kanban columns with text and key fields.

    Declaration
    public KanbanBuilder StackedHeaders(List<KanbanStackedHeader> stackedHeaders)
    Parameters
    Type Name Description
    System.Collections.Generic.List<KanbanStackedHeader> stackedHeaders
    Returns
    Type Description
    KanbanBuilder

    SwimlaneSettings(KanbanSwimlaneSettings)

    Defines the swimlane settings to Kanban board such as key field, text field, template, allow drag-and-drop, show or hide empty row, show or hide items count, and more.

    Declaration
    public KanbanBuilder SwimlaneSettings(KanbanSwimlaneSettings swimlaneSettings)
    Parameters
    Type Name Description
    KanbanSwimlaneSettings swimlaneSettings
    Returns
    Type Description
    KanbanBuilder

    SwimlaneSettings(Action<KanbanSwimlaneSettingsBuilder>)

    Declaration
    public KanbanBuilder SwimlaneSettings(Action<KanbanSwimlaneSettingsBuilder> swimlaneSettings)
    Parameters
    Type Name Description
    System.Action<KanbanSwimlaneSettingsBuilder> swimlaneSettings
    Returns
    Type Description
    KanbanBuilder

    TooltipTemplate(String)

    Defines the template content to card’s tooltip. The property works by enabling the ‘enableTooltip’ property.

    Declaration
    public KanbanBuilder TooltipTemplate(string tooltipTemplate)
    Parameters
    Type Name Description
    System.String tooltipTemplate
    Returns
    Type Description
    KanbanBuilder

    Width(Double)

    Sets the width of the Kanban board, accepting both string and number values. The string value can be either pixel or percentage format. When set to auto, the Kanban width gets auto-adjusted and display its content related to the viewable screen size.

    Declaration
    public KanbanBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type Description
    KanbanBuilder

    Width(String)

    Sets the width of the Kanban board, accepting both string and number values. The string value can be either pixel or percentage format. When set to auto, the Kanban width gets auto-adjusted and display its content related to the viewable screen size.

    Declaration
    public KanbanBuilder Width(string width)
    Parameters
    Type Name Description
    System.String width
    Returns
    Type Description
    KanbanBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved