RadzenDropDown with dictionaries

I have a DropDown that gets data from a dictionary<int, string>
It should show the values as a listed items and take the int value, convert to string and use as a bind-value.

This code was working fine with Radzen 4.3.8.
Upgrading Radzen to a new version, I get a conversion error.

<RadzenDropDown @bind-Value="data.Value"
                                Visible="FilterDef.Where(p => p.Name == data.FieldName)?.FirstOrDefault()?.DataType == FilterDataType.list"
                                Data="FilterDef.Where(p => p.Name == data.FieldName)?.FirstOrDefault()?.Values"
                                TextProperty="Value" ValueProperty="Key.ToString()" />

This happens from version 4.3.10

and here is the stacktrace:

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: 'ToString()' is not a member of type 'System.Int32' (Parameter 'propertyOrFieldName')
System.ArgumentException: 'ToString()' is not a member of type 'System.Int32' (Parameter 'propertyOrFieldName')
   at System.Linq.Expressions.Expression.PropertyOrField(Expression expression, String propertyOrFieldName)
   at Radzen.PropertyAccess.Getter[Object,Object](String propertyName, Type type)
   at Radzen.DropDownBase`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].OnParametersSet()
   at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters)
   at Radzen.RadzenComponent.<>n__0(ParameterView parameters)
   at Radzen.RadzenComponent.SetParametersAsync(ParameterView parameters)
   at Radzen.DataBoundFormComponent`1.<SetParametersAsync>d__75[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Radzen.DropDownBase`1.<SetParametersAsync>d__101[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Radzen.Blazor.RadzenDropDown`1.<SetParametersAsync>d__42[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()

Hi @luckysistemi,

You can't use Key.ToString() for ValueProperty. Either use just Key or map your dictionary to some other class.

Thank you for your quick answer.
Luciano