How to do display RadzenDropDown checkbox checked selected value under Edit mode?

Hi,

I have two RadzenDropDown. Here how to do product multiple checkbox checked true while click on edit button?

<RadzenDropDown class="form-control" placeholder="Select"
                        AllowClear="true"
                        AllowFiltering="true"
                        Multiple="true"
                        FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                        TextProperty="Name"
                        ValueProperty="Id"
                    @bind-Value=@idProducts
                    Data = @_listProducts
                        Change=@(args => onProductsChange(args)) />
@code {

        List<Products> _listProducts = new List<Products>
        {
            new Products { Id = 1, Name="Product1",CategoryId =1 },
            new Products { Id = 2, Name="Product2",CategoryId =1 },
            new Products { Id = 3, Name="Product3",CategoryId =2 },
        };
        public IEnumerable<string> idCategory = new string[] { };
        public IEnumerable<string> idProducts = new string[] { };

//Inside Edit button click
            List<int> listSelectedIds = new List<int> {1,3 };
            foreach (var item in listSelectedIds)
            {
                foreach(var item1 in _listProducts.Select(x=>x.Id))
                    if (item == item1)
                    {
                        idProducts.Cheched = true;
                    }
            }        
}

This controls what the selection is. It should contain the ValueProperty of the items you want to appear selected. Check this demo for further reference: Blazor DropDown component with multiple selection support

Thank you! I got it based on your information.