Hi,
I am using a RadzenDropDown has multiple="true" on a common child component. And also I need to use the same RadzenDropDown have multiple="false" property in same child component. Can I do this? here is my dropdown
<RadzenDropDown class="form-control" placeholder="Select Category"
AllowClear="true"
AllowFiltering="true"
Multiple="true"
FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
TextProperty="Name"
ValueProperty="Id"
@bind-Value=@idCategoryComma
Data = @_listCategory
Name="CategoryName"
Change=@(args => onProductsChange(args)) />
<RadzenRequiredValidator style="color:red; font-weight:bold;position: absolute;" Component="CategoryName" Text="Category is Required" />
@code{
[Required]
public IEnumerable<string> idCategoryComma{ get; set; } = new List<string>();
public string idCategory{ get; set; } = "";
public bool IsMultiple { get; set; } = false;
List<string> _listCategory;
}
Can I use like below code?
Multiple="@IsMultiple "
@bind-Value="@(IsMultiple ?idCategoryComma:idCategory)"