User FilterTemplate in RadzenDataFilter

Attempting to have a Lookup (dropdown) appear in the RadzenDataFilter. I have used the below code but the Dropdown does not appear, rather an int filed appears (presumably becuase LanguageId is an int in my model). Not sure if this is supported as I cannot find anything associated to FilterTemplate int he Guides or the API Reference.

  <RadzenDataFilter @ref="dataFilter" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" Auto=@auto Data="@medias" TItem="Entity.Media" ViewChanged=@(view => filteredMedias = view.ToList())>
                    <Properties>
                        <RadzenDataFilterProperty TItem="Entity.Media" Property="Timestamp" Title="Published Date" />
                        <RadzenDataFilterProperty TItem="Entity.Media" Property="Title" Title="Title" />
                        <Search.Filters.LanguageDataFilterProperty TItem="Entity.Media" Title="Language" Property="LanguageId"  >
                            <FilterTemplate >
                                <RadzenDropDown AllowClear="true" AllowFiltering="true" Placeholder="@Localizer["-- Select --"]"
                                                FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                                                FilterOperator="StringFilterOperator.Contains" TValue="int"
                                                Data=@_languages
                                                TextProperty="Name"
                                                ValueProperty="Id" Class="w-100 mb-1" Name="LanguageId" />
                            </FilterTemplate>
                        </Search.Filters.LanguageDataFilterProperty>

      </Properties>
  </RadzenDataFilter>

I actually have the above displaying the contents of the dropdown by updating my Model with Enum.Lang and setting Property="Language".

However, the dropdown for the dataFilter appears blank..

Presumably I have to tell the below how to compare against an Enum ?

    var operators = base.GetFilterOperators();
    operators = operators.Where(o =>
                                o == FilterOperator.Equals &&
                                o == FilterOperator.NotEquals
                            );
    return operators;

Not that I think about this more, I need to be able to use about 5-10 different Lookups, most of which I do not have Enums for.

Is there an example for using a CustomFilterProperty that leverages a dropdown (or other) that is queried from the db?

The below shows the Language opyion to Query on, the Datafiler but the Dropdnown does not appear but rather a textbox does.

    <Search.Filters.LanguageDataFilterProperty TItem="Entity.Media" Title="Language"
                                                                   Property="LanguageId"
                                                                   Type="typeof(IEnumerable<LookupModel>)">
        <FilterTemplate>
            <RadzenDropDown AllowClear="true" AllowFiltering="true" Placeholder="@Localizer["-- Select --"]"
                            FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                            FilterOperator="StringFilterOperator.Contains" TValue="int"
                            Data=@_languages
                            TextProperty="Name"
                            ValueProperty="Id" Class="w-100 mb-1" Name="LanguageId" />
        </FilterTemplate>
    </Search.Filters.LanguageDataFilterProperty>

Thoughts anyone?

Assume this will be wanted by many users.

Hi @TimCadieux,

You are right! DataFilter FilterTemplate is not working as expected and we will do our best to provide fix for this in our next update later this week or early next week.

Most appreciated!! Looking forward to being able to purchase a subscription!

The fix is already in the master branch and it will be released tomorrow: