New to Telerik UI for ASP.NET MVC? Download free 30-day trial

MultiColumnComboBoxColumnBuilder

Methods

Field(System.String)

Defines the field that binds to the column.

Parameters

value - System.String

The value that configures the field.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName");
                        })
            )

Title(System.String)

Defines the text of the column title in the header.

Parameters

value - System.String

The value that configures the title.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName").Title("Name");
                        })
            )

Template(System.String)

Defines a template for the column.

Parameters

value - System.String

The value that configures the template content.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName").Template("<h3>#: data.ProductName #</h3>");
                        })
            )

TemplateId(System.String)

Defines a template for the column.

Parameters

templateId - System.String

The id of the external Kendo UI template.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName").TemplateId("productTemplate");
                        })
            )
            <script id="productTemplate" type="text/x-kendo-template">
                <h3>#: data.ProductName #</h3>
            </script>

HeaderTemplate(System.String)

Defines a template for the column header.

Parameters

value - System.String

The value that configures the template content.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName").HeaderTemplate("<div class='dropdown-header'>Product info</div>");
                        })
            )

HeaderTemplateId(System.String)

Defines a template for the column header.

Parameters

templateId - System.String

The id of the external Kendo UI template.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName").HeaderTemplateId("productHeaderTemplate");
                        })
            )
            <script id="productHeaderTemplate" type="text/x-kendo-template">
                <div class='dropdown-header'>Product info</div>
            </script>

Width(System.String)

Defines the width of the column.

Parameters

value - System.String

The value that configures the width.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName").Width("150px");
                        })
            )

Width(System.Int32)

Defines the width of the column. The numeric values are treated as pixels.

Parameters

value - System.Int32

The value that configures the width.

Example


             @( Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Columns(columns =>
                        {
                            columns.Add().Field("ProductName").Width(150);
                        })
            )

In this article
Not finding the help you need?