Skip to main content

MultiSelect

Namespace: Wisej.Web.Ext.Syncfusion2

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

The MultiSelect component contains a list of predefined values from which a multiple value can be chosen. The functionality of MultiSelect resembles the SELECT form element of HTML.

public class MultiSelect : ej2Base

Constructors​

Instance member MultiSelect()​

Constructs a new instance of the MultiSelect class.

Example:

The following example creates a multiple selection list and fills it through the Options object.

var multiSelect = new MultiSelect();
multiSelect.Options.placeholder = "Select the languages";
multiSelect.Options.dataSource = new[] { "C#", "JavaScript", "Python", "SQL" };
this.Controls.Add(multiSelect);

Instance member MultiSelect(options)​

Constructs a new instance of the MultiSelect class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a multiple selection list bound to a list of objects, with one item selected, that shows the selected items as boxes.

var multiSelect = new MultiSelect(new
{
placeholder = "Select the countries",
mode = "Box",
fields = new { text = "name", value = "code" },
value = new[] { "IT" },
dataSource = new[]
{
new { code = "FR", name = "France" },
new { code = "DE", name = "Germany" },
new { code = "IT", name = "Italy" }
}
});
this.Controls.Add(multiSelect);

Implements​