Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144470 | May 7,2019 08:23 PM UTC | May 21,2019 03:39 PM UTC | JavaScript - EJ 2 | 5 |
![]() |
Tags: MultiSelect |
<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"}; |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.