Kendo.Mvc.UI.Fluent.MultiColumnComboBoxBuilder

Defines the fluent interface for configuring the MultiColumnComboBox component.

Methods

AutoBind(System.Boolean)

Controls whether to bind the widget to the DataSource on initialization.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .AutoBind(false)
%>

BindTo(System.Collections.Generic.IEnumerable<Kendo.Mvc.UI.DropDownListItem>)

Binds the ComboBox to a list of DropDownListItem.

Parameters

dataSource System.Collections.Generic.IEnumerable<Kendo.Mvc.UI.DropDownListItem>

The data source.

Example (ASPX)

<%: Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .BindTo(new List<DropDownListItem>
{
    new DropDownListItem{
    Text = "Text1",
    Value = "Value1"
    },
    new DropDownListItem{
    Text = "Text2",
    Value = "Value2"
    }
})
%>

BindTo(System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>)

Binds the ComboBox to a list of SelectListItem.

Parameters

dataSource System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>

The data source.

Example (ASPX)

<%: Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .BindTo(new List<SelectListItem>
{
    new SelectListItem{
    Text = "Text1",
    Value = "Value1"
    },
    new SelectListItem{
    Text = "Text2",
    Value = "Value2"
    }
})
%>

ClearButton(System.Boolean)

Use to enable or disable clear button functionality.

Parameters

enable System.Boolean

The boolean value.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .ClearButton(false) //disable clear button
%>

DataValueField(System.String)

Sets the field of the data item that provides the value content of the list items.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .DataTextField("Text")
    .DataValueField("Value")
%>

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

Parameters

value System.String

The value for DropDownWidth

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .DataTextField("Text")
    .DataValueField("Value")
    .DropDownWidth("600px")
%>

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

Parameters

value System.Int32

The value for DropDownWidth

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .DataTextField("Text")
    .DataValueField("Value")
    .DropDownWidth(600)
%>

EnforceMinLength(System.Boolean)

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.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .MinLength(3)
    .Filter("contains")
    .EnforceMinLength(true)
%>

Events(System.Action<Kendo.Mvc.UI.Fluent.MultiColumnComboBoxEventBuilder>)

Configures the client-side events.

Parameters

clientEventsAction System.Action<Kendo.Mvc.UI.Fluent.MultiColumnComboBoxEventBuilder>

The client events action.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .Events(events =>
        events.Change("change")
    )
%>

Filter(System.String)

Use it to enable filtering of items.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .Filter("startswith");
%>

Filter(Kendo.Mvc.UI.FilterType)

Use it to enable filtering of items.

Example (ASPX)

<%= Html.Kendo().ComboBox()
    .Name("ComboBox")
    .Filter(FilterType.Contains);
%>

Items(System.Action<Kendo.Mvc.UI.Fluent.DropDownListItemFactory>)

Defines the items in the ComboBox

Parameters

addAction System.Action<Kendo.Mvc.UI.Fluent.DropDownListItemFactory>

The add action.

Example (ASPX)

<%= Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .Items(items =>
    {
        items.Add().Text("First Item");
        items.Add().Text("Second Item");
    })
%>

HighlightFirst(System.Boolean)

Use it to enable highlighting of first matched item.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .HighlightFirst(true)
%>

MinLength(System.Int32)

Specifies the minimum number of characters that should be typed before the widget queries the dataSource.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .MinLength(3)
%>

SelectedIndex(System.Int32)

Use it to set selected item index

Parameters

index System.Int32

Item index.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .SelectedIndex(0);
%>

Suggest(System.Boolean)

Controls whether the ComboBox should automatically auto-type the rest of text.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .Suggest(true)
%>

SyncValueAndText(System.Boolean)

Controls whether the ComboBox should automatically sync custom text with the selected value.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .SyncValueAndText(false)
%>

Placeholder(System.String)

A string that appears in the textbox when it has no value.

Example (ASPX)

<%= Html.Kendo().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .Placeholder("Select country...")
%>

CascadeFrom(System.String)

Use it to set the Id of the parent ComboBox.

Example (ASPX)

<%= Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .CascadeFrom("ComboBox1")
%>

CascadeFromField(System.String)

Use it to set the field used to filter the data source.

Example (ASPX)

<%= Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox2")
    .CascadeFrom("MultiColumnComboBox1")
    .CascadeFromField("ParentID")
%>

CascadeFromParentField(System.String)

Defines the parent field to be used to retain value from. This value will be used further to filter the dataSource.

Example (ASPX)

<%= Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox2")
    .CascadeFrom("MultiColumnComboBox1")
    .CascadeFromField("ParentID")
    .CascadeFromParentField("ParentID")
%>

Text(System.String)

Define the text of the widget, when the autoBind is set to false.

Example (ASPX)

<%= Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .Text("Chai")
    .AutoBind(false)
%>

FilterFields(System.String[])

Define the fields for the filtering of the MultiColumnComboBox.

Example (ASPX)

<%= Html.Telerik().MultiColumnComboBox()
    .Name("MultiColumnComboBox")
    .FilterFields(new string[] {"Field1", "Field2"})
    .AutoBind(false)
%>

Columns(System.Action<Kendo.Mvc.UI.Fluent.MultiColumnComboBoxColumnFactory>)

Defines the columns rendered in the table of the MultiColumnComboBox.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.MultiColumnComboBoxColumnFactory>

The configurator for the columns setting.

Template(System.String)

This method is not valid for MultiColumnComboBox - use Column.Template instead.

TemplateId(System.String)

This method is not valid for MultiColumnComboBox - use Column.TemplateId instead.

In this article
Not finding the help you need?