Defines the fluent interface for configuring the MultiColumnComboBox component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MultiColumnComboBoxBuilder : DropDownListBuilderBase<MultiColumnComboBox, MultiColumnComboBoxBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<MultiColumnComboBox, MultiColumnComboBoxBuilder>ListBuilderBase<MultiColumnComboBox, MultiColumnComboBoxBuilder>DropDownListBuilderBase<MultiColumnComboBox, MultiColumnComboBoxBuilder>MultiColumnComboBoxBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ComboBoxBuilder class.
public MultiColumnComboBoxBuilder(MultiColumnComboBox component)
The component.
Methods
Controls whether to bind the component to the DataSource on initialization.
public MultiColumnComboBoxBuilder AutoBind(bool autoBind)
The value that enables or disables the automatic data binding.
Returns:Binds the MultiColumnComboBox to an IEnumerable collection of DropDownListItem.
public MultiColumnComboBoxBuilder BindTo(IEnumerable<DropDownListItem> dataSource)
The data collection.
Returns:Binds the MultiColumnComboBox to an IEnumerable collection of SelectListItem.
public MultiColumnComboBoxBuilder BindTo(IEnumerable<SelectListItem> dataSource)
The data collection.
Returns:Defines the Name() of the parent MultiColumnComboBox .
public MultiColumnComboBoxBuilder CascadeFrom(string cascadeFrom)
The value that configures the name of the parent component.
Returns:Defines the field that will be used to filter the DataSource. If it is not defined, the parent's DataValueField option will be used.
public MultiColumnComboBoxBuilder CascadeFromField(string cascadeFromField)
The value that configures the field.
Returns:Defines the parent field that will be used to retain value from. This value will be used further to filter the DataSource. If it is not defined, the value from the parent's DataValueField will be used.
public MultiColumnComboBoxBuilder CascadeFromParentField(string cascadeFromParentField)
The value that configures the field.
Returns:The option applies to a parent MultiColumnComboBox in a cascading scenario. If the option is added, the cascading will be triggered upon custom input in the parent component. Cascade on custom values works only when the CascadeFromParentField is not set for the child MultiColumnComboBox, or it points to the DataValueField of the parent.
The option applies to a parent MultiColumnComboBox in a cascading scenario. If enabled, the cascading will be triggered upon custom input in the parent component. 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 the CascadeFromParentField is not set for the child MultiColumnComboBox, or it points to the DataValueField of the parent.
public MultiColumnComboBoxBuilder CascadeOnCustomValue(bool value)
The value that enables or disables the option.
Returns:If the option is enabled, a button will appear when hovering the MultiColumnComboBox. Clicking that button will reset the component's value and trigger the Change event.
public MultiColumnComboBoxBuilder ClearButton(bool enable)
The value that toggles the visibility of the clear button.
Returns:Defines the columns rendered in the table of the MultiColumnComboBox.
public MultiColumnComboBoxBuilder Columns(Action<MultiColumnComboBoxColumnFactory> configurator)
The action that configures the column settings.
Returns:Sets the field of the data item that provides the value of the MultiColumnComboBox.
public MultiColumnComboBoxBuilder DataValueField(string field)
The value that configures the value field.
Returns:Sets the width of the dropdown. The numeric values are treated as pixels.
public MultiColumnComboBoxBuilder DropDownWidth(int value)
The value that configures the width.
Returns:Sets the width of the dropdown.
public MultiColumnComboBoxBuilder DropDownWidth(string value)
The value that configures the width.
Returns:When this option is enabled, the component will not show all items when the text of the search input is cleared. By default, the MultiColumnComboBox shows all items when the text of the search input is cleared. Works in conjunction with the MinLength() option.
public MultiColumnComboBoxBuilder EnforceMinLength(bool enforceMinLength)
The value that enables the option.
Returns:Configures the handled client-side events of the MultiColumnComboBox.
public MultiColumnComboBoxBuilder Events(Action<MultiColumnComboBoxEventBuilder> clientEventsAction)
The action that configures the available events.
Returns:Sets a value that controls how the color is applied to the component.
public MultiColumnComboBoxBuilder FillMode(FillMode value)
The enum value that configures the fill mode.
Returns:Defines the filtering method used to determine the suggestions for the current value. The filtering can be performed over string values only (either the component's data has to be an array of strings, or over the specified DataTextField() field.
public MultiColumnComboBoxBuilder Filter(FilterType filter)
The enum value that configures the filter operator.
Returns:Defines the filtering method used to determine the suggestions for the current value. The filtering can be performed over string values only (either the component's data has to be an array of strings, or over the specified DataTextField() field. The supported filter values are "startswith", "endswith" and "contains".
public MultiColumnComboBoxBuilder Filter(string filter)
The value that configures the filter operator.
Returns:Defines the fields for filtering the MultiColumnComboBox.
public MultiColumnComboBoxBuilder FilterFields(string[] fields)
The value that configures the collection of fields.
Returns:When the option is enabled, the first suggestion will be automatically highlighted.
public MultiColumnComboBoxBuilder HighlightFirst(bool highlightFirst)
The value that enables or disables the option.
Returns:Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public MultiColumnComboBoxBuilder InputMode(string value)
The value that configures the "inputmode" attribute.
Returns:Defines the items in the MultiColumnComboBox.
public MultiColumnComboBoxBuilder Items(Action<DropDownListItemFactory> addAction)
The action that configures the items.
Returns:Defines the localization of the texts that are used in the MultiColumnComboBox.
public MultiColumnComboBoxBuilder Messages(Action<MessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Specifies the minimum number of characters the user must type before a search is performed.
public MultiColumnComboBoxBuilder MinLength(int length)
The value that configures the minimum number of characters.
Returns:Defines the hint displayed by the MultiColumnComboBox when it is empty.
public MultiColumnComboBoxBuilder Placeholder(string placeholder)
The value that configures the placeholder.
Returns:Defines the configuration for the prefix adornment of the component.
public MultiColumnComboBoxBuilder PrefixOptions(Action<PrefixOptionsSettingsBuilder> configurator)
The action that configures the prefix options.
Returns:Sets the border radius of the component.
public MultiColumnComboBoxBuilder Rounded(Rounded? value)
The enum value that configures the border radius.
Returns:Defines index of the initially selected item.
public MultiColumnComboBoxBuilder SelectedIndex(int index)
The value that configures the index.
Returns:Sets the size of the component.
public MultiColumnComboBoxBuilder Size(ComponentSize? value)
The enum value that configures the size.
Returns:Defines the configuration for the suffix adornment of the component.
public MultiColumnComboBoxBuilder SuffixOptions(Action<SuffixOptionsSettingsBuilder> configurator)
The action that configures the suffix options.
Returns:Controls whether the MultiColumnComboBox must automatically use the first suggestion as its value.
public MultiColumnComboBoxBuilder Suggest(bool suggest)
The value that enables or disables the option.
Returns:Controls whether the MultiColumnComboBox must automatically set the selected value to the typed custom text. Disable the option to clear the selected value but keep the custom text.
public MultiColumnComboBoxBuilder SyncValueAndText(bool syncValueAndText)
The value that enables or disables the option.
Returns:This method is not valid for MultiColumnComboBox - use Template() option within the Columns() configuration instead.
public override MultiColumnComboBoxBuilder Template(string template)
Overrides:
This method is not valid for MultiColumnComboBox - use TemplateId() option within the Columns() configuration instead.
public override MultiColumnComboBoxBuilder TemplateId(string templateId)
Overrides:
Define the text of the MultiColumnComboBox used when the AutoBind option is disabled.
public MultiColumnComboBoxBuilder Text(string text)
The value that configures the initial option text.
Returns: