Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

MultiSelect- list of long value binding not working properly.

using Syncfusion.Blazor.DropDowns


<SfMultiSelect TValue="List<long>"
               TItem="FormQuestionOptionData"
               Placeholder="Select Items"
               ShowSelectAll="false"
               DataSource="@LocalData"
               @bind-Value="@holdFormatedAnswer"
               EnableRtl="true"
               ShowDropDownIcon="true"
               AllowFiltering="false">
    <MultiSelectEvents TItem="FormQuestionOptionData" TValue="List<long>" ValueChange="ValueChangedAdd" />
    <MultiSelectFieldSettings Value="ID" Text="text"></MultiSelectFieldSettings>
</SfMultiSelect>




@code{
    public List<long> holdFormatedAnswer = new List<long> { 1, 5 };
    //holdFormatedAnswer.Add(1);
    public class FormQuestionOptionData
    {
        public long ID { get; set; }
        public string text { get; set; }
    }
    List<FormQuestionOptionData> LocalData = new List<FormQuestionOptionData> {
    new FormQuestionOptionData() { ID=1, text= "American Football" },
    new FormQuestionOptionData() { ID=2, text= "Badminton" },
    new FormQuestionOptionData() { ID=3, text= "Basketball" },
    new FormQuestionOptionData() { ID=4, text= "Cricket" },
    new FormQuestionOptionData() { ID=5, text= "Football" },
    new FormQuestionOptionData() { ID=6, text= "Golf" },
    new FormQuestionOptionData() { ID=7, text= "Hockey" },
    new FormQuestionOptionData() { ID=8, text= "Rugby"},
    new FormQuestionOptionData() { ID=9, text= "Snooker" },
    new FormQuestionOptionData() { ID=10, text= "Tennis"},
    };
    public void ValueChangedAdd()
    {


    }
}