Please see my Currency dropdown in Grid. While searching like USD I'm getting error
(Error: Enum type 'Currency' not found (at index 17)).
<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 !
enchev
January 21, 2022, 6:15am
2
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 />
enchev
January 21, 2022, 11:15am
4
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
Thanks for your reply. Could you give me an example please? Thanks !
enchev
January 21, 2022, 11:36am
6
You don't have any properties for your collection, you should remove:
The first example in our demo is using simple collection:
Here is the same with enabled filtering:
1 Like
Great, Thank you so much, its working now.