<EjsMultiSelect ID="default" Mode="@VisualMode.Default" PlaceHolder="Favorite Sports" DataSource="@games" Select=”@onSelect”></EjsMultiSelect>
@functions {
public void onSelect(SelectEventArgs args)
{
}
} |
<EjsMultiSelect ID="default" Mode="@VisualMode.Default" PlaceHolder="Favorite Sports" DataSource="@games" Removed=”@onRemoving”></EjsMultiSelect>
@functions {
public void onRemoving(removeEventArgs args)
{
}
} |
Hi Andrew,
Greetings from Syncfusion support.
The change event triggers only after the control has been lost the focus. While adding the chips, Select event will trigger and removing the chips Removed event will trigger. And Tagging event before set the selected item as chip in the component.This is the dafault behaviour of our component. Please find the below code snippet for adding and removing chip events.Select Event:
<EjsMultiSelect ID="default" Mode="@VisualMode.Default" PlaceHolder="Favorite Sports" DataSource="@games" Select=”@onSelect”>EjsMultiSelect>@functions {public void onSelect(SelectEventArgs args){}}Removed Event:
<EjsMultiSelect ID="default" Mode="@VisualMode.Default" PlaceHolder="Favorite Sports" DataSource="@games" Removed=”@onRemoving”>EjsMultiSelect>@functions {public void onRemoving(removeEventArgs args){}}
To know more about these events, please refer the below API links,
Please let us know if you require any further assistance.
Thanks,Christo
<EjsMultiSelect ref='@MultiSeletRef' PlaceHolder="Select countries" bind-value="@val" change='@onChange' ValueChanged="@MyValueChangeHandler" DataSource="@localdata">
. . . . . . . . . . . . . . . . . . . . . . . . . . .
public void MyValueChangeHandler()
{
Console.WriteLine(this.val);
}
public object val = new string[]{"BM"}; |