Dropdown search in grid getting "Error: Enum type 'Currency' not found "

Please see my Currency dropdown in Grid. While searching like USD I'm getting error
(Error: Enum type 'Currency' not found (at index 17)).

image


<RadzenDataGridColumn TItem="OfferListItemDto" Width="250px" Property="Currency" Title="Currency">
                            <EditTemplate Context="offer">
                                <RadzenDropDown @bind-Value="offer.Currency" Data="@DealProgramDropdown.Currency" AllowClear="true" AllowFiltering="true"  TextProperty="Currency" ValueProperty="Currency" Style="width:100%; display: block" />                                                                
                            </EditTemplate>
                        </RadzenDataGridColumn>

Search is working fine with same code as a stand still dropdown but in grid not working. Any suggestions please ? Thanks !

Check if you have Currency property in the items provided as Data for the component.

Yes, Data are populated but search function inside dropdown is not working.
exactly same code is working outside of grid. I used this below dropdown in a form and search functionality working fine but in grid its showing that error. Thanks !

<RadzenDropDown AllowClear="true"
                                                TValue="string"
                                                Style="width: 100%"
                                                FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                                                FilterOperator="StringFilterOperator.StartsWith"
                                                AllowFiltering="true"
                                                Data="@DealProgramDropdown.Currency"
                                                TextProperty="Currency"
                                                ValueProperty="Currency"
                                                @bind-Value=@offer.Currency />

As I already noted in my previous reply you need to have Currency on the collection item used for Data in order to use search.

This is my Currency List data
image

Thanks for your reply. Could you give me an example please? Thanks !

You don't have any properties for your collection, you should remove:

The first example in our demo is using simple collection:
https://blazor.radzen.com/dropdown

Here is the same with enabled filtering:


1 Like

Great, Thank you so much, its working now.