Skip to main content

kendoMultiSelect

Namespace: Wisej.Web.Ext.Kendo

Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)

The MultiSelect displays a list of options and allows multiple selections from this list.

public class kendoMultiSelect : kendoBase

Constructors​

Instance member kendoMultiSelect()​

Constructs a new instance of the kendoMultiSelect class.

Example:

The following example creates a multi-select field and fills it through the Options property.

var multiSelect = new kendoMultiSelect();
multiSelect.Options.dataSource = new[] { "Bug", "Feature", "Documentation", "Question" };
multiSelect.Options.placeholder = "Select labels...";
multiSelect.Size = new Size(350, 40);
this.Controls.Add(multiSelect);

Instance member kendoMultiSelect(options)​

Constructs a new instance of the kendoMultiSelect class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a multi-select field bound to a list of objects, with two items preselected and a limit of three selected items.

var multiSelect = new kendoMultiSelect(new
{
dataTextField = "name",
dataValueField = "id",
value = new[] { 1, 3 },
maxSelectedItems = 3,
dataSource = new[]
{
new { id = 1, name = "Anna" },
new { id = 2, name = "Marco" },
new { id = 3, name = "Sofia" },
new { id = 4, name = "Luca" }
}
});
multiSelect.Size = new Size(350, 40);
this.Controls.Add(multiSelect);

Implements​