In Development
Last Updated: 09 Sep 2020 08:42 by ADMIN
Aaron
Created on: 09 Jul 2020 13:39
Category: Grid
Type: Bug Report
5
Custom Filter Menu not updated by setting the Grid State

The Custom Filter Menu in the Grid is not working as I would expect.

 

I am trying to do two things

  1. Apply filters programmatically through the Grid State
  2. Populate a custom Filter Menu with values that exist in that column

I am doing something very similar to the demo for the custom filter menu: https://demos.telerik.com/blazor-ui/grid/custom-filter-menu

I have observed that if I set a filter programatically through the grid state, those filters are applied to the grid but are not being passed through the FilterMenuTemplateContext object in the FilterMenuTemplate when I open the Filter Menu for that column.  Therefore, I cannot update my custom filter to show which values are currently being filtered on.

Is it by design that the FilterMenuTemplateContext does not contain Filters applied through the grid state or a bug?

2 comments
ADMIN
Marin Bratanov
Posted on: 09 Sep 2020 08:42

Hello,

Improvements for the FilterMenu in this regard can be expected through https://feedback.telerik.com/blazor/1473887-loadstate-does-not-populate-filters-data-in-gridfiltermode-filtermenu and I am keeping this open for the filter row as the situation there is more complicated, especially if we don't want a breaking change.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

ADMIN
Marin Bratanov
Posted on: 10 Jul 2020 14:57

Hi Aaron,

Thank you for reaching out. Indeed, this should be investigated and remedied, the grid should let you sync the template with its state.

You can click the Follow button on this page to get email notifications about updates on this fix.

 

Regards,
Marin Bratanov
Progress Telerik