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

MultiColumnComboBoxBuilder

Methods

AutoBind(System.Boolean)

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

Parameters

autoBind - System.Boolean

The value that enables or disables the automatic data binding.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .AutoBind(false)
            )

BindTo(System.Collections.Generic.IEnumerable)

Binds the MultiColumnComboBox to an IEnumerable collection of DropDownListItem.

Parameters

dataSource - System.Collections.Generic.IEnumerable<DropDownListItem>

The data collection.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .BindTo(new List<DropDownListItem>
                        {
                            new DropDownListItem {
                                Text = "Text1",
                                Value = "Value1"
                            },
                            new DropDownListItem {
                                Text = "Text2",
                                Value = "Value2"
                            }
                          })
             )

BindTo(System.Collections.Generic.IEnumerable)

Binds the MultiColumnComboBox to an IEnumerable collection of DropDownListItem.

Parameters

dataSource - System.Collections.Generic.IEnumerable<SelectListItem>

The data collection.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .BindTo(new List<DropDownListItem>
                        {
                            new DropDownListItem {
                                Text = "Text1",
                                Value = "Value1"
                            },
                            new DropDownListItem {
                                Text = "Text2",
                                Value = "Value2"
                            }
                          })
             )

ClearButton(System.Boolean)

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.

Parameters

enable - System.Boolean

The value that toggles the visibility of the clear button.

Example


            @(Html.Kendo().MultiColumnComboBox()
                       .Name("multiColumnComboBox")
                       .ClearButton(true)
            )

DataValueField(System.String)

Sets the field of the data item that provides the value of the MultiColumnComboBox.

Parameters

field - System.String

The value that configures the value field.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .DataTextField("CategoryName")
                        .DataValueField("CategoryID")
            )

Sets the width of the dropdown.

Parameters

value - System.String

The value that configures the width.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .DropDownWidth("600")
            )

Sets the width of the dropdown. The numeric values are treated as pixels.

Parameters

value - System.Int32

The value that configures the width.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .DropDownWidth(600)
            )

EnforceMinLength(System.Boolean)

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.

Parameters

enforceMinLength - System.Boolean

The value that enables the option.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .MinLength(3)
                        .Filter("contains")
                        .EnforceMinLength(true)
            )

Events(System.Action)

Configures the handled client-side events of the MultiColumnComboBox.

Parameters

clientEventsAction - System.Action<MultiColumnComboBoxEventBuilder>

The action that configures the available events.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Events(events =>
                            events.Change("onChange")
                        )
            )

Filter(System.String)

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".

Parameters

filter - System.String

The value that configures the filter operator.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Filter("startswith")
            )

Filter(Kendo.Mvc.UI.FilterType)

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.

Parameters

filter - FilterType

The enum value that configures the filter operator.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Filter(FilterType.Contains)
            )

Items(System.Action)

Defines the items in the MultiColumnComboBox.

Parameters

addAction - System.Action<DropDownListItemFactory>

The action that configures the items.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Items(items =>
                        {
                            items.Add().Text("First Item");
                            items.Add().Text("Second Item");
                        })
            )

HighlightFirst(System.Boolean)

When the option is enabled, the first suggestion will be automatically highlighted.

Parameters

highlightFirst - System.Boolean

The value that enables or disables the option.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .HighlightFirst(true)
            )

Messages(System.Action)

Defines the localization of the texts that are used in the MultiColumnComboBox.

Parameters

configurator - System.Action<MessagesSettingsBuilder>

The action that configures the messages.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Messages(msg => msg.Clear("Clear!").NoData("There is no data!"))
            )

MinLength(System.Int32)

Specifies the minimum number of characters the user must type before a search is performed.

Parameters

length - System.Int32

The value that configures the minimum number of characters.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .MinLength(3)
            )

SelectedIndex(System.Int32)

Defines index of the initially selected item.

Parameters

index - System.Int32

The value that configures the index.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .SelectedIndex(0)
            )

Suggest(System.Boolean)

Controls whether the MultiColumnComboBox must automatically use the first suggestion as its value.

Parameters

suggest - System.Boolean

The value that enables or disables the option.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Suggest(true)
            )

SyncValueAndText(System.Boolean)

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.

Parameters

syncValueAndText - System.Boolean

The value that enables or disables the option.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .SyncValueAndText(false)
            )

Placeholder(System.String)

Defines the hint displayed by the MultiColumnComboBox when it is empty.

Parameters

placeholder - System.String

The value that configures the placeholder.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Placeholder("Select country...")
            )

CascadeFrom(System.String)

Defines the Name() of the parent MultiColumnComboBox .

Parameters

cascadeFrom - System.String

The value that configures the name of the parent component.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("parentMultiColumnComboBox")
            )
            @(Html.Kendo().MultiColumnComboBox()
                        .Name("childMultiColumnComboBox")
                        .CascadeFrom("parentMultiColumnComboBox")
            )

CascadeFromField(System.String)

Defines the field that will be used to filter the DataSource. If it is not defined, the parent's DataValueField option will be used.

Parameters

cascadeFromField - System.String

The value that configures the field.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("parentMultiColumnComboBox")
                        .DataTextField("CategoryName")
                        .DataValueField("CategoryID")
            )
            @(Html.Kendo().MultiColumnComboBox()
                        .Name("childMultiColumnComboBox")
                        .DataTextField("ProductName")
                        .DataValueField("ProductID")
                        .CascadeFrom("parentMultiColumnComboBox")
                        .CascadeFromField("ParentID")
            )

CascadeFromParentField(System.String)

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.

Parameters

cascadeFromParentField - System.String

The value that configures the field.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("parentMultiColumnComboBox")
                        .DataTextField("CategoryName")
                        .DataValueField("CategoryID")
            )
            @(Html.Kendo().MultiColumnComboBox()
                        .Name("childMultiColumnComboBox")
                        .DataTextField("ProductName")
                        .DataValueField("ProductID")
                        .CascadeFrom("parentMultiColumnComboBox")
                        .CascadeFromField("ParentID")
                        .CascadeFromParentField("CascadeID")
            )

CascadeOnCustomValue(System.Boolean)

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.

Parameters

value - System.Boolean

The value that enables or disables the option.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("parentMultiColumnComboBox")
                        .DataTextField("CategoryName")
                        .DataValueField("CategoryID")
                        .CascadeOnCustomValue(true)
            )
            @(Html.Kendo().MultiColumnComboBox()
                        .Name("childMultiColumnComboBox")
                        .DataTextField("ProductName")
                        .DataValueField("ProductID")
                        .CascadeFrom("parentMultiColumnComboBox")
                        .CascadeFromField("ParentID")
            )

CascadeOnCustomValue()

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.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("parentMultiColumnComboBox")
                        .DataTextField("CategoryName")
                        .DataValueField("CategoryID")
                        .CascadeOnCustomValue(true)
            )
            @(Html.Kendo().MultiColumnComboBox()
                        .Name("childMultiColumnComboBox")
                        .DataTextField("ProductName")
                        .DataValueField("ProductID")
                        .CascadeFrom("parentMultiColumnComboBox")
                        .CascadeFromField("ParentID")
            )

Text(System.String)

Define the text of the MultiColumnComboBox used when the AutoBind option is disabled.

Parameters

text - System.String

The value that configures the initial option text.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Text("Chai")
                        .AutoBind(false)
            )

FilterFields(System.String[])

Defines the fields for filtering the MultiColumnComboBox.

Parameters

fields - System.String[]

The value that configures the collection of fields.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .FilterFields(new string[] {"Country", "City"})
                        .Filter("contains")
                        .DataTextField("Name")
                        .DataValueField("ID")
            )

Columns(System.Action)

Defines the columns rendered in the table of the MultiColumnComboBox.

Parameters

configurator - System.Action<MultiColumnComboBoxColumnFactory>

The action that configures the column settings.

Example


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

Template(System.String)

This method is not valid for MultiColumnComboBox - use Template() option within the Columns() configuration instead.

Parameters

template - System.String

TemplateId(System.String)

This method is not valid for MultiColumnComboBox - use TemplateId() option within the Columns() configuration instead.

Parameters

templateId - System.String

Size(Kendo.Mvc.UI.ComponentSize)

Sets the size of the component.

Parameters

value - ComponentSize

The enum value that configures the size.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Size(ComponentSize.Large)
            )

Rounded(Kendo.Mvc.UI.Rounded)

Sets the border radius of the component.

Parameters

value - Rounded

The enum value that configures the border radius.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .Rounded(Rounded.Medium)
            )

FillMode(Kendo.Mvc.UI.FillMode)

Sets a value that controls how the color is applied to the component.

Parameters

value - FillMode

The enum value that configures the fill mode.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .FillMode(FillMode.Solid)
            )

PrefixOptions(System.Action)

Defines the configuration for the prefix adornment of the component.

Parameters

configurator - System.Action<PrefixOptionsSettingsBuilder>

The action that configures the prefix options.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .PrefixOptions(prefix => prefix.Icon("map-marker-target"))
            )

SuffixOptions(System.Action)

Defines the configuration for the suffix adornment of the component.

Parameters

configurator - System.Action<SuffixOptionsSettingsBuilder>

The action that configures the suffix options.

Example


            @(Html.Kendo().MultiColumnComboBox()
                        .Name("multiColumnComboBox")
                        .SuffixOptions(suffix => suffix.Icon("search"))
            )

TemplateView(System.Web.Mvc.MvcHtmlString)

TemplateView to be used for rendering the items in the list.

Parameters

templateView - System.Web.Mvc.MvcHtmlString

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .TemplateView(Html.Partial("TemplateView"))
            )

TemplateHandler(System.String)

The JavaScript function that returns the Template to be used for rendering the items in the list.

Parameters

template - System.String

Template(Kendo.Mvc.UI.TemplateBuilder)

Template to be used for rendering the items in the list.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the fixed group template.

Value(System.String)

Sets the value of the widget.

Parameters

value - System.String

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .Value("1")
            )

Animation(System.Boolean)

Use to enable or disable animation of the popup element.

Parameters

enable - System.Boolean

The boolean value.

Example


            @( Html.Kendo().DropDownList()
                       .Name("DropDownList")
                       .Animation(false) //toggle effect
            )

Animation(System.Action)

Configures the animation effects of the widget.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

The action which configures the animation effects.

Example


            @( Html.Kendo().DropDownList()
                       .Name("DropDownList")
                       .Animation(animation =>
                       {
                            animation.Open(open =>
                            {
                                open.SlideIn(SlideDirection.Down);
                            });
                       })
            )

BindTo(System.Collections.IEnumerable)

Binds the widget to an IEnumerable list.

Parameters

data - System.Collections.IEnumerable

The data source.

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .DataTextField("CompanyName")
                        .DataValueField("CompanyID")
                        .BindTo(new List<Company>
                        {
                            new Company {
                                CompanyName = "Text1",
                                CompanyID = "Value1"
                            },
                            new Company {
                                CompanyName = "Text2",
                                CompanyID = "Value2"
                            } })
            )

DataTextField(System.String)

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

Parameters

field - System.String

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .DataTextField("Text")
            )

DataSource(System.Action)

Configures the DataSource options.

Parameters

configurator - System.Action<ReadOnlyDataSourceBuilder>

The DataSource configurator action.

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .DataSource(source =>
                        {
                            source.Read(read =>
                            {
                                read.Action("GetProducts", "Home");
                            });
                        })
            )

DataSource(System.String)

Parameters

dataSourceId - System.String

Delay(System.Int32)

Specifies the delay in ms after which the widget will start filtering the dataSource.

Parameters

delay - System.Int32

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .Delay(300)
            )

Enable(System.Boolean)

Enables or disables the combobox.

Parameters

value - System.Boolean

FixedGroupTemplate(System.String)

Fixed group template which will be rendered as a static group header of the popup element.

Parameters

fixedGroupTemplate - System.String

FixedGroupTemplateId(System.String)

FixedGroupTemplateId to be used for rendering the static header of the popup element.

Parameters

fixedGroupTemplateId - System.String

FixedGroupTemplateView(System.Web.Mvc.MvcHtmlString)

FixedGroupTemplateView to be used for rendering the static header of the popup element.

Parameters

fixedGroupTemplateView - System.Web.Mvc.MvcHtmlString

FixedGroupTemplateHandler(System.String)

The JavaScript handler that returns the fixed group template which will be rendered as a static group header of the popup element.

Parameters

value - System.String

FixedGroupTemplate(Kendo.Mvc.UI.TemplateBuilder)

The fixed group template which will be rendered as a static group header of the popup element.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the fixed group template.

GroupTemplate(System.String)

Group template which will be rendered as a group header of each new group in the popup.

Parameters

groupTemplate - System.String

GroupTemplateId(System.String)

GroupTemplateId to be used for rendering the static header of the popup element.

Parameters

groupTemplateId - System.String

GroupTemplateView(System.Web.Mvc.MvcHtmlString)

GroupTemplateView to be used for rendering the static header of the popup element.

Parameters

groupTemplateView - System.Web.Mvc.MvcHtmlString

GroupTemplateHandler(System.String)

The JavaScript ghandler that returns the Group template which will be rendered as a group header of each new group in the popup.

Parameters

value - System.String

GroupTemplate(Kendo.Mvc.UI.TemplateBuilder)

The Group template which will be rendered as a group header of each new group in the popup.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the fixed group template.

IgnoreCase(System.Boolean)

Use it to enable case insensitive bahavior of the combobox. If true the combobox will select the first matching item ignoring its casing.

Parameters

ignoreCase - System.Boolean

Example


             @( Html.Kendo().ComboBox()
                        .Name("ComboBox")
                        .IgnoreCase(true)
            )

Height(System.Int32)

Sets the height of the drop-down list in pixels.

Parameters

height - System.Int32

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .Height(300)
            )

HeaderTemplate(System.String)

Header template which will be rendered as a static header of the popup element.

Parameters

headerTemplate - System.String

Example

 ")
            )

HeaderTemplateId(System.String)

HeaderTemplateId to be used for rendering the static header of the popup element.

Parameters

headerTemplateId - System.String

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .HeaderTemplateId("widgetHeaderTemplateId")
            )

HeaderTemplateView(System.Web.Mvc.MvcHtmlString)

HeaderTemplateView to be used for rendering the static header of the popup element.

Parameters

headerTemplateView - System.Web.Mvc.MvcHtmlString

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .HeaderTemplateView(Html.Partial("HeaderTemplate"))
            )

HeaderTemplateHandler(System.String)

The JAvaScript function that returns the Header template which will be rendered as a static header of the popup element.

Parameters

value - System.String

HeaderTemplate(Kendo.Mvc.UI.TemplateBuilder)

Header template which will be rendered as a static header of the popup element.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the fixed group template.

FooterTemplate(System.String)

Footer template which will be rendered as a static footer of the popup element.

Parameters

footerTemplate - System.String

Example

  items found")
            )

FooterTemplateId(System.String)

FooterTemplateId to be used for rendering the static footer of the popup element.

Parameters

footerTemplateId - System.String

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .FooterTemplateId("widgetFooterTemplateId")
            )

FooterTemplateView(System.Web.Mvc.MvcHtmlString)

FooterTemplateView to be used for rendering the static footer of the popup element.

Parameters

footerTemplateView - System.Web.Mvc.MvcHtmlString

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .FooterTemplateView(Html.Partial("FooterTemplate"))
            )

FooterTemplateHandler(System.String)

The JavaScript function that returns the Footer template which will be rendered as a static footer of the popup element.

Parameters

value - System.String

FooterTemplate(Kendo.Mvc.UI.TemplateBuilder)

Footer template which will be rendered as a static footer of the popup element.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the fixed group template.

NoDataTemplate(System.String)

No data template which will be rendered as a static no-data template of the popup element.

Parameters

noDataTemplate - System.String

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .NoDataTemplate("No Data!")
            )

NoDataTemplateId(System.String)

NoDataTemplateId to be used for rendering the static no-data template of the popup element.

Parameters

noDataTemplateId - System.String

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .NoDataTemplateId("widgetNoDataTemplateId")
            )

NoDataTemplateView(System.Web.Mvc.MvcHtmlString)

NoDataTemplateView to be used for rendering the static no-data template of the popup element.

Parameters

noDataTemplateView - System.Web.Mvc.MvcHtmlString

Example


             @( Html.Kendo().DropDownList()
                        .Name("DropDownList")
                        .NoDataTemplateView(Html.Partial("NoDataTemplate"))
            )

NoDataTemplateHandler(System.String)

the JavaScript function that returns the No data template which will be rendered as a static no-data template of the popup element.

Parameters

value - System.String

NoDataTemplate(Kendo.Mvc.UI.TemplateBuilder)

No data template which will be rendered as a static no-data template of the popup element.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the fixed group template.

Popup(System.Action)

Configures the popup settings of the widget.

Parameters

popupAction - System.Action<PopupSettingsBuilder>

ValuePrimitive(System.Boolean)

Parameters

valuePrimitive - System.Boolean

Virtual(System.Boolean)

Configures the virtualization settings of the widget.

Parameters

enable - System.Boolean

Virtual(System.Action)

Configures the virtualization settings of the widget.

Parameters

virtualizationAction - System.Action<VirtualSettingsBuilder>

Label(System.Action)

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.

Parameters

configurator - System.Action<LabelSettingsBuilder>

AdaptiveMode(Kendo.Mvc.UI.AdaptiveMode)

Parameters

value - AdaptiveMode

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean

AsChildComponent()

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?