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.
- C#
- VB.NET
public class MultiSelect : ej2Base
Public Class MultiSelect
Inherits ej2Base
Constructors
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);
MultiSelect(options)
Constructs a new instance of the MultiSelect class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);