Radzen dropdown with multiselect issue

I use the radzen drop down with multiselect feature to allowed multiselect the drop down item. But, i it didn't show the ticked status (blue color) after select the item. Does anyone what's the issue? Below is my code. Thanks.

<RadzenDropDown TextProperty="Text" ValueProperty="Value"  Multiple="true" class="w-100"  AllowClear="true" AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                                        Data=@Record.BannerType() @bind-Value=@multipleValues Change=@(args => OnChange(args, "DropDown with multiple selection"))  />

@code{
  IEnumerable<byte> multipleValues = new byte[] { 0};
}

============================================================
  public record Option<T>(string Text, T Value);

        public static IList<Option<byte>> BannerType() =>
           new List<Option<byte>>
           {
                    new Option<byte>("Banner", 1),
                    new Option<byte>("Textlink", 2)
           };

Hi @Ck_Cheah,

Does it work if you don't you a record but a regular class with properties?

class Option<T>
{
     public string Text { get; set; }
     public T Value { get; set; }
}

There is a chance the record properties can't be retrieved by name via reflection.

This will prevent the DropDown to keep state since the expression will be evaluated on every cycle - will work properly if you bind Data without expression:

@page "/dropdown"


<RadzenDropDown TextProperty="Text" ValueProperty="Value"  
    Multiple="true" class="w-100"  AllowClear="true" 
    AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
    Data=@data @bind-Value=@multipleValues  />

@code{
    IEnumerable<byte> multipleValues = new byte[] { 0};
    public record Option<T>(string Text, T Value);

    public static IList<Option<byte>> BannerType() =>
          new List<Option<byte>>
        {
                new Option<byte>("Banner", 1),
                new Option<byte>("Textlink", 2)
        };


    IList<Option<byte>> data = BannerType();
}

yes, it's working. Thanks.