ListBoxBuilder
Defines the fluent API for configuring the Kendo ListBox for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ListBoxBuilder : WidgetBuilderBase<ListBox, ListBoxBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<ListBox, ListBoxBuilder>ListBoxBuilder
Implements:
Inherited Members
Constructors
Methods
If set to false, the component will not bind to the data source during initialization. In this case, the data binding will occur when the change event of the data source is fired. By default, the ListBox will bind to the data source that is specified in the configuration.
public ListBoxBuilder AutoBind(bool value)
The value that configures the autobind.
Returns:Binds the ListBox to an IEnumerable list.
public ListBoxBuilder BindTo(IEnumerable data)
The data source.
Returns:Binds the ListBox to a list of SelectListItem.
public ListBoxBuilder BindTo(IEnumerable<SelectListItem> dataSource)
The data source.
Returns:The id of the target ListBox to which items from the source ListBox will be transferred and vice versa. If you have to transfer items from the target ListBox over its toolbar, then you also need to set its connectWith option.
public ListBoxBuilder ConnectWith(string value)
The value that configures the connectwith.
Returns:Sets the data source configuration of the ListBox.
public ListBoxBuilder DataSource(Action<ReadOnlyDataSourceBuilder> configurator)
The lambda which configures the data source
Returns:Sets the data source of the ListBox.
public ListBoxBuilder DataSource(string dataSourceId)
The name of the data source
Returns:The field of the data item that provides the text content of the list items. Based on this field, the component filters the data source.
public ListBoxBuilder DataTextField(string value)
The value that configures the datatextfield.
Returns:The field of the data item that provides the value of the component.
public ListBoxBuilder DataValueField(string value)
The value that configures the datavaluefield.
Returns:Indicates whether the ListBox items can be dragged and dropped.
Indicates whether the ListBox items can be dragged and dropped.
public ListBoxBuilder Draggable(Action<ListBoxDraggableSettingsBuilder> configurator)
The action that configures the draggable.
Returns:Indicates whether the ListBox items can be dragged and dropped.
public ListBoxBuilder Draggable(bool enabled)
Enables or disables the draggable option.
Returns:Array of id strings which determines the ListBoxes that can drag and drop their items to the current ListBox. The dropSources option describes a one way relationship. If you want a two-way connection, then set the dropSources option on both components.
public ListBoxBuilder DropSources(params string[] value)
The value that configures the dropsources.
Returns:Configures the client-side events.
public ListBoxBuilder Events(Action<ListBoxEventBuilder> configurator)
The client events action.
Returns:Defines the localization texts for the ListBox. Used primarily for localization.
public ListBoxBuilder Messages(Action<ListBoxMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Indicates whether the keyboard navigation is enabled or disabled.
public ListBoxBuilder Navigatable(bool value)
The value that configures the navigatable.
Returns:Represents the selectable options.
public ListBoxBuilder Selectable(ListBoxSelectable value)
The value for Selectable
Returns:Specifies the item template of the ListBox.
public ListBoxBuilder Template(string value)
The value that configures the template.
Returns:Specifies the item template of the ListBox.
public ListBoxBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Specifies the item template of the ListBox.
public ListBoxBuilder TemplateHandler(string value)
The value that configures the template.
Returns:Specifies the item template of the ListBox.
public ListBoxBuilder TemplateId(string value)
The value that configures the template.
Returns:Specifies the item template of the ListBox.
public ListBoxBuilder TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:Defines the settings for displaying the toolbar of the ListBox. The toolbar allows you to execute a set of predefined actions.By default, the toolbar is not displayed. If the tools array is populated, then the toolbar and the corresponding tools are displayed.
public ListBoxBuilder Toolbar(Action<ListBoxToolbarSettingsBuilder> configurator)
The action that configures the toolbar.
Returns: