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

Kendo UI MultiColumnComboBox TagHelper MultiColumnComboBoxTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-multicolumncombobox")]
[HtmlTargetElement("multicolumncombobox-editor", ParentTag = "form-item")]
[HtmlTargetElement("multicolumncombobox-editor", ParentTag = "property-grid-item")]
[RestrictChildren("popup-animation", new string[] { "popup", "virtual", "datasource", "multicolumncombobox-columns", "messages", "label", "prefix-options", "suffix-options", "fixed-group-template", "footer-template", "header-template", "no-data-template", "group-template" })]
public class MultiColumnComboBoxTagHelper : DropDownBaseTagHelper, ITagHelper, ITagHelperComponent, IDataBoundWidget<DataSourceTagHelper>, IKendoFormEditor, ITemplateComponent

Inheritance: objectTagHelperTagHelperBaseDropDownBaseTagHelperMultiColumnComboBoxTagHelper

Implements: IDataBoundWidget<DataSourceTagHelper>IKendoFormEditorITagHelperITagHelperComponentITemplateComponent

Inherited Members DropDownBaseTagHelper.AnimationDropDownBaseTagHelper.PopupDropDownBaseTagHelper.VirtualDropDownBaseTagHelper.DatasourceDropDownBaseTagHelper.DatasourceIdDropDownBaseTagHelper.BindToTagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()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-multicolumncombobox name="products" filter="FilterType.Contains"
                       placeholder="Select product"
                       datatextfield="ProductName"
                       datavaluefield="ProductID"
                       auto-bind="false"
                       min-length="3" style="width: 100%;">
       <datasource type="DataSourceTagHelperType.Custom">
           <transport>
               <read url="@Url.Action("GetProducts", "Home")" />
           </transport>
       </datasource>
   </kendo-multicolumncombobox>

Constructors

Initializes a new instance of the MultiColumnComboBoxTagHelper class.

C#
public MultiColumnComboBoxTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

Specifies the adaptive rendering of the component.

C#
public AdaptiveMode? AdaptiveMode { get; set; }

Allows customization of the subtitle's text in the adaptive view of the component.

C#
public string AdaptiveSubtitle { get; set; }

Allows customization of the title's text in the adaptive view of the component.

C#
public string AdaptiveTitle { get; set; }

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

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

Use it to set the Id of the parent MultiColumnComboBox widget.Help topic showing how cascading functionality works

C#
public string CascadeFrom { get; set; }

Defines the field to be used to filter the data source. If not defined the parent's dataValueField option will be used.Help topic showing how cascading functionality works

C#
public string CascadeFromField { get; set; }

Defines the parent field to be used to retain value from. This value will be used further to filter the dataSource. If not defined the value from the parent's dataValueField will be used.

C#
public string CascadeFromParentField { get; set; }

Applicable to a parent MultiColumnComboBox in a cascading scenario. If set to true cascading will be triggered upon custom input in the parent widget. When set to false (default) the child will not cascade and it will be disabled upon setting custom input in the parent MultiColumnComboBox. Cascade on custom values works only when cascadeFromParentField is not set for the child combo, or it points to the dataValueField of the parent.

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

Unless this options is set to false, a button will appear when hovering the widget. Clicking that button will reset the widget's value and will trigger the change event.

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

The field of the data item used when searching for suggestions. This is the text that will be displayed in the list of matched results.

C#
[HtmlAttributeName("datatextfield")]
public string DataTextField { get; set; }

The field of the data item used when searching for suggestions. This is the value that will be displayed in the list of matched results.

C#
[HtmlAttributeName("datavaluefield")]
public string DataValueField { get; set; }

The delay in milliseconds between a keystroke and when the widget displays the popup.

C#
public double? Delay { get; set; }

The width of the dropdown. Numeric values are treated as pixels.

C#
public string DropDownWidth { get; set; }

If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.

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

If set to true the widget will not show all items when the text of the search input cleared. By default the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.

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

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

The filtering method used to determine the suggestions for the current value.

C#
public FilterType? Filter { get; set; }

Enables multicolumn filtering.

C#
public string[] FilterFields { get; set; }

The template used to render the fixed header group. By default the widget displays only the value of the current group.

C#
public string FixedGroupTemplate { get; set; }

The template used to render the fixed header group. By default the widget displays only the value of the current group. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string FixedGroupTemplateHandler { get; set; }

The template used to render the fixed header group. By default the widget displays only the value of the current group. This option expects the ID of the script element that contains the template.

C#
public string FixedGroupTemplateId { get; set; }

The template used to render the fixed header group. By default the widget displays only the value of the current group. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent FixedGroupTemplateView { get; set; }

The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.

C#
public string FooterTemplate { get; set; }

The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string FooterTemplateHandler { get; set; }

The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template. This option expects the ID of the script element that contains the template.

C#
public string FooterTemplateId { get; set; }

The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent FooterTemplateView { get; set; }

An expression to be evaluated against the current model.

C#
public ModelExpression For { get; set; }

The template used to render the groups. By default the widget displays only the value of the group.

C#
public string GroupTemplate { get; set; }

The template used to render the groups. By default the widget displays only the value of the group. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string GroupTemplateHandler { get; set; }

The template used to render the groups. By default the widget displays only the value of the group. This option expects the ID of the script element that contains the template.

C#
public string GroupTemplateId { get; set; }

The template used to render the groups. By default the widget displays only the value of the group. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent GroupTemplateView { get; set; }

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public string HeaderTemplate { get; set; }

Specifies a static HTML content, which will be rendered as a header of the popup element. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string HeaderTemplateHandler { get; set; }

Specifies a static HTML content, which will be rendered as a header of the popup element. This option expects the ID of the script element that contains the template.

C#
public string HeaderTemplateId { get; set; }

Specifies a static HTML content, which will be rendered as a header of the popup element. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent HeaderTemplateView { get; set; }

The height of the suggestion popup in pixels. The default value is 200 pixels.

C#
public double? Height { get; set; }

If set to true the first suggestion will be automatically highlighted.

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

If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.

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

The index of the initially selected item. The index is 0 based.

C#
public double? Index { get; set; }

Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.

C#
public string InputMode { get; set; }

IsNested member.

C#
[HtmlAttributeNotBound]
public bool IsNested { get; set; }

Implements: IKendoFormEditor.IsNested

Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.

C#
[HtmlAttributeName("label")]
public string LabelValue { get; set; }

The minimum number of characters the user must type before a search is performed. Set to higher value than 1 if the search could match a lot of items.

C#
public double? MinLength { get; set; }

The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.

C#
public string NoDataTemplate { get; set; }

The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string NoDataTemplateHandler { get; set; }

The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound. This option expects the ID of the script element that contains the template.

C#
public string NoDataTemplateId { get; set; }

The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent NoDataTemplateView { get; set; }

The name of the JavaScript function that will handle the cascade event. Fired when the value of the widget is changed via API or user interaction.

C#
public string OnCascade { get; set; }

The name of the JavaScript function that will handle the change event. Fired when the value of the widget is changed by the user. As of 2015 Q3 SP1 cascading widget will trigger change event when its value is changed due to parent update.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnChange { get; set; }

The name of the JavaScript function that will handle the close event. Fired when the popup of the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnClose { get; set; }

The name of the JavaScript function that will handle the dataBound event. Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnDataBound { get; set; }

The name of the JavaScript function that will handle the filtering event. Fired when the widget is about to filter the data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnFiltering { get; set; }

The name of the JavaScript function that will handle the open event. Fired when the popup of the widget is opened by the user.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnOpen { get; set; }

The name of the JavaScript function that will handle the select event. Fired when an item from the popup is selected by the user either with mouse/tap or with keyboard navigation.

C#
public string OnSelect { get; set; }

The hint displayed by the widget when it is empty. Not set by default.

C#
public string Placeholder { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

If set to true the widget will automatically use the first suggestion as its value.

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

When set to true the widget will automatically set selected value to the typed custom text. Set the option to false to clear the selected value but keep the custom text.

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

Configures the templates for the MultiColumnComboBox.

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

Implements: ITemplateComponent.Templates

The text of the widget used when the autoBind is set to false.

C#
public string Text { get; set; }

The value of the widget.

C#
public string Value { get; set; }

Specifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.

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

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: DropDownBaseTagHelper.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: DropDownBaseTagHelper.SerializeEvents()

SerializeSettings method.

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

Dictionary<string, object>

Overrides: DropDownBaseTagHelper.SerializeSettings()

Serializes the defined templates.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeTemplates()

TryAddAsEditor method.

C#
public bool TryAddAsEditor(TagHelperContext context)
Parameters:contextTagHelperContextReturns:

bool

The result.

Implements: IKendoFormEditor.TryAddAsEditor(TagHelperContext)

Writes the HTML output.

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

The TagHelper output.

Overrides: DropDownBaseTagHelper.WriteHtml(TagHelperOutput)