Defines the fluent API for configuring the Telerik UI for ASP.NET Core MultiColumnComboBox
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MultiColumnComboBoxBuilder : WidgetBuilderBase<MultiColumnComboBox, MultiColumnComboBoxBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<MultiColumnComboBox, MultiColumnComboBoxBuilder>MultiColumnComboBoxBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the MultiColumnComboBoxBuilder class.
public MultiColumnComboBoxBuilder(MultiColumnComboBox component)
Methods
Specifies the adaptive rendering of the component.
public MultiColumnComboBoxBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Allows customization of the subtitle's text in the adaptive view of the component.
public MultiColumnComboBoxBuilder AdaptiveSubtitle(string value)
The value for AdaptiveSubtitle
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Allows customization of the title's text in the adaptive view of the component.
public MultiColumnComboBoxBuilder AdaptiveTitle(string value)
The value for AdaptiveTitle
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Configures the animation effects of the MultiColumnComboBox suggestion popup.
public MultiColumnComboBoxBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation effects.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Configures the opening and closing animations of the suggestion popup. When the option is disabled, the opening and closing animations are disabled, too. As a result, the suggestion popup will open and close instantly.
public MultiColumnComboBoxBuilder Animation(bool enable)
The boolean value that enables or disables the animations.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Controls whether to bind the widget to the data source on initialization.
public MultiColumnComboBoxBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Binds the MultiColumnComboBox to an IEnumerable collection.
public MultiColumnComboBoxBuilder BindTo(IEnumerable data)
The data collection.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Binds the MultiColumnComboBox to an IEnumerable collection of SelectListItem.
public MultiColumnComboBoxBuilder BindTo(IEnumerable<SelectListItem> dataSource)
The data collection.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Use it to set the Id of the parent MultiColumnComboBox widget.Help topic showing how cascading functionality works
public MultiColumnComboBoxBuilder CascadeFrom(string value)
The value for CascadeFrom
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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
public MultiColumnComboBoxBuilder CascadeFromField(string value)
The value for CascadeFromField
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder CascadeFromParentField(string value)
The value for CascadeFromParentField
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder CascadeOnCustomValue()
Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder CascadeOnCustomValue(bool value)
The value for CascadeOnCustomValue
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder ClearButton(bool value)
The value for ClearButton
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Defines the columns rendered in the table of the MultiColumnComboBox.
public MultiColumnComboBoxBuilder Columns(Action<MultiColumnComboBoxColumnFactory> configurator)
The MultiColumnComboBoxColumnFactory for the columns setting.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
Sets the DataSource configuration of the MultiColumnComboBox.
public MultiColumnComboBoxBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The action that configures the DataSource options.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Sets an external DataSource instance as a DataSource of the MultiColumnComboBox.
public MultiColumnComboBoxBuilder DataSource(string dataSourceId)
The Name() of the external DataSource instance.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The field of the data item that provides the text content of the list items. The widget will filter the data source based on this field.
public MultiColumnComboBoxBuilder DataTextField(string value)
The value for DataTextField
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The field of the data item that provides the value of the widget.
public MultiColumnComboBoxBuilder DataValueField(string value)
The value for DataValueField
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The delay in milliseconds between a keystroke and when the widget displays the popup.
public MultiColumnComboBoxBuilder Delay(double value)
The value for Delay
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The width of the dropdown. Numeric values are treated as pixels.
public MultiColumnComboBoxBuilder DropDownWidth(string value)
The value for DropDownWidth
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder Enable(bool value)
The value for Enable
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder EnforceMinLength()
Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder EnforceMinLength(bool value)
The value for EnforceMinLength
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Configures the client-side events.
public MultiColumnComboBoxBuilder Events(Action<MultiColumnComboBoxEventBuilder> configurator)
The client events action.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Sets a value controlling how the color is applied.
public MultiColumnComboBoxBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The filtering method used to determine the suggestions for the current value.
public MultiColumnComboBoxBuilder Filter(FilterType value)
The value for Filter
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Enables multicolumn filtering.
public MultiColumnComboBoxBuilder FilterFields(params string[] value)
The value for FilterFields
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiColumnComboBoxBuilder FixedGroupTemplate(string value)
The value for FixedGroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiColumnComboBoxBuilder FixedGroupTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the fixedgrouptemplate.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiColumnComboBoxBuilder FixedGroupTemplateHandler(string templateHandler)
The handler that returs the template for FixedGroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiColumnComboBoxBuilder FixedGroupTemplateId(string templateId)
The ID of the template element for FixedGroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the fixed header group. By default the widget displays only the value of the current group.
public MultiColumnComboBoxBuilder FixedGroupTemplateView(IHtmlContent templateView)
The view that contains the template for FixedGroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder FooterTemplate(string value)
The value for FooterTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the footertemplate.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder FooterTemplateHandler(string templateHandler)
The handler that returs the template for FooterTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder FooterTemplateId(string templateId)
The ID of the template element for FooterTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder FooterTemplateView(IHtmlContent templateView)
The view that contains the template for FooterTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiColumnComboBoxBuilder GroupTemplate(string value)
The value for GroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiColumnComboBoxBuilder GroupTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the grouptemplate.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiColumnComboBoxBuilder GroupTemplateHandler(string templateHandler)
The handler that returs the template for GroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiColumnComboBoxBuilder GroupTemplateId(string templateId)
The ID of the template element for GroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The template used to render the groups. By default the widget displays only the value of the group.
public MultiColumnComboBoxBuilder GroupTemplateView(IHtmlContent templateView)
The view that contains the template for GroupTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiColumnComboBoxBuilder HeaderTemplate(string value)
The value for HeaderTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiColumnComboBoxBuilder HeaderTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the headertemplate.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiColumnComboBoxBuilder HeaderTemplateHandler(string templateHandler)
The handler that returs the template for HeaderTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiColumnComboBoxBuilder HeaderTemplateId(string templateId)
The ID of the template element for HeaderTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Specifies a static HTML content, which will be rendered as a header of the popup element.
public MultiColumnComboBoxBuilder HeaderTemplateView(IHtmlContent templateView)
The view that contains the template for HeaderTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The height of the suggestion popup in pixels. The default value is 200 pixels.
public MultiColumnComboBoxBuilder Height(double value)
The value for Height
Returns:Returns the current MultiColumnComboBoxBuilder instance.
If set to true the first suggestion will be automatically highlighted.
public MultiColumnComboBoxBuilder HighlightFirst(bool value)
The value for HighlightFirst
Returns:Returns the current MultiColumnComboBoxBuilder instance.
If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
public MultiColumnComboBoxBuilder IgnoreCase(bool value)
The value for IgnoreCase
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder InputMode(string value)
The value for InputMode
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Defines the items in the MultiColumnComboBox.
public MultiColumnComboBoxBuilder Items(Action<SelectListItemFactory> addAction)
The action that configures the items.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder Label(Action<MultiColumnComboBoxLabelSettingsBuilder> configurator)
The MultiColumnComboBoxLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
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.
public MultiColumnComboBoxBuilder Label(string label)
The label.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
The text messages displayed in the widget. Use this option to customize or localize the messages.
public MultiColumnComboBoxBuilder Messages(Action<MultiColumnComboBoxMessagesSettingsBuilder> configurator)
The MultiColumnComboBoxMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
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.
public MultiColumnComboBoxBuilder MinLength(double value)
The value for MinLength
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder NoDataTemplate(string value)
The value for NoDataTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder NoDataTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the nodatatemplate.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder NoDataTemplateHandler(string templateHandler)
The handler that returs the template for NoDataTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder NoDataTemplateId(string templateId)
The ID of the template element for NoDataTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder NoDataTemplateView(IHtmlContent templateView)
The view that contains the template for NoDataTemplate
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The hint displayed by the widget when it is empty. Not set by default.
public MultiColumnComboBoxBuilder Placeholder(string value)
The value for Placeholder
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
public MultiColumnComboBoxBuilder Popup(Action<MultiColumnComboBoxPopupSettingsBuilder> configurator)
The MultiColumnComboBoxPopupSettingsBuilder for the popup setting.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
The configuration for the prefix adornment of the component.
public MultiColumnComboBoxBuilder PrefixOptions(Action<MultiColumnComboBoxPrefixOptionsSettingsBuilder> configurator)
The MultiColumnComboBoxPrefixOptionsSettingsBuilder for the prefixoptions setting.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
Sets a value controlling the border radius.
public MultiColumnComboBoxBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Defines index of the initially selected item.
public MultiColumnComboBoxBuilder SelectedIndex(int value)
Item index.
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Sets the size of the component.
public MultiColumnComboBoxBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The configuration for the suffix adornment of the component.
public MultiColumnComboBoxBuilder SuffixOptions(Action<MultiColumnComboBoxSuffixOptionsSettingsBuilder> configurator)
The MultiColumnComboBoxSuffixOptionsSettingsBuilder for the suffixoptions setting.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
If set to true the widget will automatically use the first suggestion as its value.
public MultiColumnComboBoxBuilder Suggest()
Returns the current MultiColumnComboBoxBuilder instance.
If set to true the widget will automatically use the first suggestion as its value.
public MultiColumnComboBoxBuilder Suggest(bool value)
The value for Suggest
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder SyncValueAndText(bool value)
The value for SyncValueAndText
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The text of the widget used when the autoBind is set to false.
public MultiColumnComboBoxBuilder Text(string value)
The value for Text
Returns:Returns the current MultiColumnComboBoxBuilder instance.
The value of the widget.
public MultiColumnComboBoxBuilder Value(string value)
The value for Value
Returns:Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder ValuePrimitive()
Returns the current MultiColumnComboBoxBuilder instance.
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.
public MultiColumnComboBoxBuilder ValuePrimitive(bool value)
The value for ValuePrimitive
Returns:Returns the current MultiColumnComboBoxBuilder instance.
Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.
public MultiColumnComboBoxBuilder Virtual()
Returns the current instance of MultiColumnComboBoxVirtualSettingsBuilder .
Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.
public MultiColumnComboBoxBuilder Virtual(Action<MultiColumnComboBoxVirtualSettingsBuilder> configurator)
The MultiColumnComboBoxVirtualSettingsBuilder for the virtual setting.
Returns:Returns the current instance of MultiColumnComboBoxBuilder .
Enables the virtualization feature of the widget. The configuration can be set on an object, which contains two properties - itemHeight and valueMapper.For detailed information, refer to the article on virtualization.
public MultiColumnComboBoxBuilder Virtual(bool enabled)
Enables or disables the virtual option.
Returns:Returns the current instance of MultiColumnComboBoxVirtualSettingsBuilder .