ListBox
Kendo UI ListBox component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class ListBox : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseListBox
Implements:
Inherited Members
Constructors
Initializes a new instance of the ListBox class.
Properties
If set to false, the widget 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 bool? AutoBind { get; set; }
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 string ConnectWith { get; set; }
DataSource member.
public DataSource DataSource { get; }
DataSourceId member.
public string DataSourceId { get; set; }
The field of the data item that provides the text content of the list items. Based on this field, the widget filters the data source.
public string DataTextField { get; set; }
The field of the data item that provides the value of the widget.
public string DataValueField { get; set; }
Indicates whether the ListBox items can be dragged and dropped.
public ListBoxDraggableSettings Draggable { get; }
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 widgets.
public string[] DropSources { get; set; }
Defines the localization texts for the ListBox. Used primarily for localization.
public ListBoxMessagesSettings Messages { get; }
Indicates whether the keyboard navigation is enabled or disabled.
public bool? Navigatable { get; set; }
Represents the selectable options.
public ListBoxSelectable? Selectable { get; set; }
The handler that returns the template used for Template
public string TemplateHandler { get; set; }
The id of the script element used for Template
public string TemplateId { get; set; }
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 ListBoxToolbarSettings Toolbar { get; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
VerifySettings method.
public override void VerifySettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: