RadzenDataGrid Enum Column Filtering using DropDown #385

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

Originally created by @vertonghenb on GitHub (Apr 22, 2022).

Is your feature request related to a problem? Please describe.
When using Enums as DataGridColumns they're not filterable by default. We currently get a unusable picker which does not work. In the following image the current (problem) situation is shown.
Screenshot 2022-04-22 at 11 46 36

Describe the solution you'd like
Built-in support for EnumType filtering using a RadzenDropDown

  • The underlying (int) value should be used when triggering the filter. So Dynamic Linq can actually do the filtering by default.
  • The text of the enum labels should be customisable. For example using an annotation or using a localiser for example.
  • The filter is always "all" but once 1 value or multiple values are selected it should filter.
  • The API should be simple, if it's an Enum type this should be the default rendering (as with the DatePicker)
<RadzenDataGridColumn 
TItem="Employee" 
Property="Status" 
Title="Status"/>

Note that there are no additional objects or private fields needed to keep the state of the selected items.

Describe alternatives you've considered
Using a template for it's quite a pain to do this for all our datagrids (we have 100+)

Originally created by @vertonghenb on GitHub (Apr 22, 2022). **Is your feature request related to a problem? Please describe.** When using Enums as DataGridColumns they're not filterable by default. We currently get a unusable picker which does not work. In the following image the current (problem) situation is shown. ![Screenshot 2022-04-22 at 11 46 36](https://user-images.githubusercontent.com/10981553/164682130-9b90272e-d786-4abd-b3a5-5dd14695ec13.png) **Describe the solution you'd like** Built-in support for EnumType filtering using a RadzenDropDown - The underlying (int) value should be used when triggering the filter. So Dynamic Linq can actually do the filtering by default. - The text of the enum labels should be customisable. For example using an annotation or using a localiser for example. - The filter is always "all" but once 1 value or multiple values are selected it should filter. - The API should be simple, if it's an Enum type this should be the default rendering (as with the DatePicker) ```razor <RadzenDataGridColumn TItem="Employee" Property="Status" Title="Status"/> ``` > Note that there are no additional objects or private fields needed to keep the state of the selected items. **Describe alternatives you've considered** Using a template for it's quite a pain to do this for all our datagrids (we have 100+)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#385