New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI TaskBoard TagHelper TaskBoardTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-taskboard")]
[RestrictChildren("card-menu", new string[] { "column-settings", "editable", "preview-pane", "taskboard-resources", "toolbar", "messages", "datasource", "taskboard-columns", "taskboard-template" })]
public class TaskBoardTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<DataSourceTagHelper>, ITemplateComponent

Inheritance: objectTagHelperTagHelperBaseTaskBoardTagHelper

Implements: IDataBoundWidget<DataSourceTagHelper>ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-taskboard name="taskBoard" datatitlefield="title" datastatusfield="OwnerID" datadescriptionfield="Description" datacategoryfield="ID" on-execute-command="onExecute" template-id="card-template" height="750">
       <datasource>
           <transport>
               <read url="@Url.Action("Tag_Helper_Tasks_Read", "TaskBoard")" />
               <create url="@Url.Action("Tag_Helper_Tasks_Create", "TaskBoard")" />
               <update url="@Url.Action("Tag_Helper_Tasks_Update", "TaskBoard")" />
               <destroy url="@Url.Action("Tag_Helper_Tasks_Destroy", "TaskBoard")" />
           </transport>
           <schema data="Data" total="Total" errors="Errors">
               <model id="TaskID">
                   <fields>
                       <field name="TaskID" type="number"></field>
                       <field name="title" from="Title" type="string"></field>
                       <field name="Description" from="Description" type="string"></field>
                       <field name="OwnerID" type="number" default-value="0"></field>
                   </fields>
               </model>
           </schema>
       </datasource>
       <column-settings datatextfield="Text" datastatusfield="ID">
       </column-settings>
       <taskboard-columns>
           <datasource>
               <transport>
                   <read url="@Url.Action("Tag_Helper_Columns_Read", "TaskBoard")" />
                   <create url="@Url.Action("Tag_Helper_Columns_Create", "TaskBoard")" />
                   <update url="@Url.Action("Tag_Helper_Columns_Update", "TaskBoard")" />
                   <destroy url="@Url.Action("Tag_Helper_Columns_Destroy", "TaskBoard")" />
               </transport>
               <schema data="Data" total="Total" errors="Errors">
                   <model id="ID">
                       <fields>
                           <field name="ID" type="number"></field>
                           <field name="Text" from="Text" type="string"></field>
                       </fields>
                   </model>
               </schema>
           </datasource>
       </taskboard-columns>
   </kendo-taskboard>

Constructors

Initializes a new instance of the TaskBoardTagHelper class.

C#
public TaskBoardTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

Controls whether to bind the TaskBoard to the data source on initialization.

C#
public bool? AutoBind { get; set; }

Binds the TaskBoard DataSource to a collection of items.

C#
public IEnumerable<object> BindTo { get; set; }

The category field of the card.

C#
[HtmlAttributeName("datacategoryfield")]
public string DataCategoryField { get; set; }

The description field of the card.

C#
[HtmlAttributeName("datadescriptionfield")]
public string DataDescriptionField { get; set; }

The field used to order cards (number based). If not set, cards will be rendered in the order they are fetched. And ordering will not be applied to the DataSource and respectively, not synced with the remote data source.

C#
[HtmlAttributeName("dataorderfield")]
public string DataOrderField { get; set; }

The ID of the DataSource tag helper.

C#
public string DatasourceId { get; set; }

The field of the data item that provides the status of the card. Mapped with the status of the columns.

C#
[HtmlAttributeName("datastatusfield")]
public string DataStatusField { get; set; }

The title field of the card.

C#
[HtmlAttributeName("datatitlefield")]
public string DataTitleField { get; set; }

Configures the height of the TaskBoard wrapper.

C#
public string Height { get; set; }

The name of the JavaScript function that will handle the change event. Fired when the user changed the card order or status by dragging.

C#
public string OnChange { get; set; }

The name of the JavaScript function that will handle the columnsDataBinding event. Fired before the TaskBoard binds the columns' data source.

C#
public string OnColumnsDataBinding { get; set; }

The name of the JavaScript function that will handle the columnsDataBound event. Fired when the TaskBoard's columns are bound to their data source.

C#
public string OnColumnsDataBound { get; set; }

The name of the JavaScript function that will handle the dataBinding event. Fired before the TaskBoard binds to its data source.

C#
public string OnDataBinding { get; set; }

The name of the JavaScript function that will handle the dataBound event. Fired when the TaskBoard is bound to data from its data source.

C#
public string OnDataBound { get; set; }

The name of the JavaScript function that will handle the deleteCard event. Fired when the user deletes a card.

C#
public string OnDeleteCard { get; set; }

The name of the JavaScript function that will handle the deleteColumn event. Fired when the user deletes a column.

C#
public string OnDeleteColumn { get; set; }

The name of the JavaScript function that will handle the editCard event. Fired when the user edits or creates a card.

C#
public string OnEditCard { get; set; }

The name of the JavaScript function that will handle the editColumn event. Fired when the user edits or creates a column.

C#
public string OnEditColumn { get; set; }

The name of the JavaScript function that will handle the execute event. Fires when a command is executed.

C#
public string OnExecute { get; set; }

The name of the JavaScript function that will handle the move event. Fired when the user moves a card.

C#
public string OnMove { get; set; }

The name of the JavaScript function that will handle the moveEnd event. Fired when the user dropped a card in a column.

C#
public string OnMoveEnd { get; set; }

The name of the JavaScript function that will handle the moveStart event. Fired when the user started moving a card.

C#
public string OnMoveStart { get; set; }

The name of the JavaScript function that will handle the saveCard event. Fired when the user saves a card.

C#
public string OnSaveCard { get; set; }

The name of the JavaScript function that will handle the saveColumn event. Fired when the user saves a column.

C#
public string OnSaveColumn { get; set; }

The name of the JavaScript function that will handle the select event. Fired when the user selects a card in the TaskBoard.

C#
public string OnSelect { get; set; }

Toggles the reordering of cards in the TaskBoard.

C#
public bool? Reorderable { get; set; }

Toggles the selection of the TaskBoard.

C#
public bool? Selectable { get; set; }

Controls the rendering of the card.

C#
public string Template { get; set; }

Controls the rendering of the card. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TemplateHandler { get; set; }

Controls the rendering of the card. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

Represents a collection of templates defined for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

Controls the rendering of the card. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

Configures the width of the TaskBoard wrapper.

C#
public string Width { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)