None of MultiSelect's event works.

Hi team,

You can compile and run the sample, and you could see none of MultiSelect's event works (I bind only three, but not limited to them). Could you tell me what's wrong with it?

Thanks.

Attachment: SyncfusionBlazorMultiSelect_84198a40.rar

3 Replies 1 reply marked as answer

SP Sureshkumar P Syncfusion Team September 1, 2020 01:54 PM UTC

Hi Brian, 
 
Greetings from Syncfusion support. 
 
Based on your shared information with sample. we suggest you use MultiSelectEvents tag to bind the events as like below to trigger the events.  
 
Please find the code example. 
<div id = "ControlRegion"> 
<div class="control-section"> 
    <div class="control_wrapper"> 
            <div class="control-styles"> 
                <h5> Default Mode</h5> 
                <SfMultiSelect TValue="string[]" Mode="@VisualMode.Default" Placeholder="Favorite Sports" DataSource="@Games" > 
                   <MultiSelectEvents TValue="string[]" ValueChange="OnChange" OnValueSelect="OnSelect"></MultiSelectEvents> 
                    <MultiSelectFieldSettings Text="Text" Value="ID"></MultiSelectFieldSettings> 
                </SfMultiSelect> 
            </div> 
            <div class="control-styles"> 
                <h5>Box Mode</h5> 
                <SfMultiSelect TValue="string[]" Mode="@VisualMode.Box" Placeholder="Favorite Sports" DataSource="@Games"> 
                    <MultiSelectFieldSettings Text="Text" Value="ID"></MultiSelectFieldSettings> 
                </SfMultiSelect> 
            </div> 
            <div class="control-styles"> 
                <h5>Delimiter Mode</h5> 
                <SfMultiSelect TValue="string[]" Mode="@VisualMode.Delimiter" Placeholder="Favorite Sports" DataSource="@Games"> 
                    <MultiSelectFieldSettings Text="Text" Value="ID"></MultiSelectFieldSettings> 
                </SfMultiSelect> 
            </div> 
        </div> 
</div> 
</div> 
<br/> 
<div> 
  <h3>Selected Features:</h3> 
    <ul class="ulstyle"> 
      <li class="list"> MultiSelect Dropdown Samples - Default</li> 
      <li class="list"> Theme - Material</li> 
    </ul> 
</div> 
<br/> 
<style> 
    .control-styles{ 
        margin-bottom:3%; 
    } 
    .control_wrapper { 
        width350px; 
        margin0 auto; 
        padding2%; 
    } 
    .ulstyle { 
        margin0px; 
        padding-left20px; 
        displayinline-block; 
    } 
    .list { 
    floatleft; 
    line-height20px; 
    margin10px; 
    min-width370px; 
    } 
</style> 
@code{ 
    public class GameFields 
    { 
        public string ID { get; set; } 
        public string Text { get; set; } 
    } 
    private List<GameFields> Games = new List<GameFields>() 
{ 
        new GameFields(){ ID= "Game1", Text= "American Football" }, 
        new GameFields(){ ID= "Game2", Text= "Badminton" }, 
        new GameFields(){ ID= "Game3", Text= "Basketball" }, 
        new GameFields(){ ID= "Game4", Text= "Cricket" }, 
        new GameFields(){ ID= "Game5", Text= "Football" }, 
        new GameFields(){ ID= "Game6", Text= "Golf" }, 
        new GameFields(){ ID= "Game7", Text= "Hockey" }, 
        new GameFields(){ ID= "Game8", Text= "Rugby"}, 
    }; 
 
    private void OnChange(MultiSelectChangeEventArgs<string[]> args) 
    { 
    } 
 
    private void OnSelect(SelectEventArgs args) 
    { 
    } 
 
    private void OnFocus(Syncfusion.Blazor.DropDowns.MultiSelectEvents<string[]> args)  
    { 
    } 
} 
 
 
Regards, 
Sureshkumar P 


Marked as answer

BR Brian September 3, 2020 09:44 AM UTC

Thank, I got it.


SP Sureshkumar P Syncfusion Team September 6, 2020 02:38 PM UTC

Hi Brian, 
 
Thanks for the update. 
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon