Error when clearing dropdown with delete key when DisabledProperty is entered #1258

Closed
opened 2026-01-29 17:51:14 +00:00 by claunia · 0 comments
Owner

Originally created by @bert-algoet on GitHub (May 31, 2024).

Describe the bug
When passing the DisabledProperty to the RadzenDropDown, pressing delete on a dropdown to clear it results in an error.
This is because the disabledPropertyGetter(item) does not support null as a parameter.
image

To Reproduce
<RadzenDropDown TValue="SomeClassWithIsDisabledProperty"
Data="@_lst"
DisabledProperty="IsDisabled"
AllowClear="true"
@bind-Value="@_selectedItem">

Select an item and then press delete.

Originally created by @bert-algoet on GitHub (May 31, 2024). **Describe the bug** When passing the DisabledProperty to the RadzenDropDown, pressing delete on a dropdown to clear it results in an error. This is because the disabledPropertyGetter(item) does not support null as a parameter. ![image](https://github.com/radzenhq/radzen-blazor/assets/145683747/4952e005-052d-423f-bc69-a50456dae06c) **To Reproduce** <RadzenDropDown TValue="SomeClassWithIsDisabledProperty" Data="@_lst" DisabledProperty="IsDisabled" AllowClear="true" @bind-Value="@_selectedItem"> </RadzenDropDown> Select an item and then press delete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1258