When ever i make the Drop down value data item as null. The clear icon is not disappearing.
In cascading drop down, when i clear the item in the parent the child dropdown is getting cleared but.when i select a item in the prarent dropdown the child dropdown value is getting prepopulated. how to prevent it.
Check if the type of the variable bound to @bind-Value is nullable.
is there any way to reset the dropdown value..
If the bound value is nullable you can set AllowClear=true for the DropDown/DropDownDataGrid component - this will allow the value to be cleared from the UI.
1 Like
Thanks It worked for me...