Hi,
I have two RadzenDropDown
with Multiple="true"
. But I need to remove “select all” checkbox option from Product drowpdown only.
There are the list of Product Category and Product.
<label>Product Category</label>
<RadzenDropDown class="form-control w-100" placeholder="Select Product"
AllowClear="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
FilterOperator="StringFilterOperator.StartsWith"
AllowFiltering="true"
Multiple="true"
@bind-Value="@productCategoryValues"
TextProperty="Name" ValueProperty="Code" Data="@_ProductCategoryList" Change="@(args => onProductChange(args))" />
<label>Product</label>
<RadzenDropDown Name="Product-multi-select" class="form-control w-100" placeholder="Select Product"
AllowClear="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
FilterOperator="StringFilterOperator.StartsWith"
AllowFiltering="true"
Multiple="true"
LoadData=@searchValueChanged
AllowVirtualization=@isVirtualization
Count="@Count"
@bind-Value="@productListValues"
TextProperty="Name" ValueProperty="Code" Data="@_ProductList" Change="@(args => onProductChange(args))" />
I have tried below css style
code by giving Name="Product-multi-select"
attribute to product dropdown but it is not working.
<style>
[name=Product-multi-select] div.rz-multiselect-header div.rz-chkbox {
display: none !important;
}
[name=Product-multi-select] li[aria-label*='All'] div.rz-chkbox {
display: none !important;
}
[name=Product-multi-select] {
z-index: 0 !important;
}
</style>
Thanks!