Completed
Last Updated: 20 Jun 2025 15:21 by Denny
Release 2025 Q3 (Aug)
Bill Griep
Created on: 05 Jun 2025 14:05
Category: Grid
Type: Bug Report
10
Using FilterMenuButtonsTemplate/FilterMenuTemplate Causes Grid to Refresh on Action Button Click (e.g., Clear, Filter) or "Enter"

When attempting to utilize the FilterMenuButtonsTemplate component, after selecting any of the defined action buttons (i.e., Clear, Filter, etc.), the selection will cause the page to refresh.

Steps:

  1. Proceed to the Telerik Blazor documentation page for Filter Menu Buttons Template within the Grid component.
  2. View the example for Using custom filter menu buttons.
  3. Ensure that this is the first time loading the component as the error will only occur on the example page when first initialized.
  4. Select the filter button within the “Price” column header.
  5. Press the “Clear” button.
2 comments
ADMIN
Tsvetomir
Posted on: 20 Jun 2025 06:21

Hello Denny,

I can confirm that the bug is planned to be fixed and included in our next release. We are planning to release a patch version, which will probably be live in the next few weeks. That is the information that could be provided at that moment. I hope this serves you well.

In the meantime, a possible workaround to handle the page reload is to set ButtonType="ButtonType.Button" to all TelerikButtons in the FilterMenuButtonTemplate or FilterMenuTemplate.

<GridColumn Field="Price">
    <FilterMenuTemplate>
        <TelerikButton OnClick="@HandleCustomAction" ButtonType="@ButtonType.Button">Action</TelerikButton>
    </FilterMenuTemplate>
    <FilterMenuButtonsTemplate Context="filterContext">
        <TelerikButton OnClick="@(async _ => await filterContext.FilterAsync())" ButtonType="@ButtonType.Button">Filter </TelerikButton>
        <TelerikButton OnClick="@(() => SetPredefinedFilterAsync(filterContext))" ButtonType="@ButtonType.Button">Select >= 55</TelerikButton>
        <TelerikButton OnClick="@(() => ClearFilterAsync(filterContext))" ButtonType="@ButtonType.Button">Clear</TelerikButton>
    </FilterMenuButtonsTemplate>
</GridColumn>

Regards,
Tsvetomir
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Denny
Posted on: 19 Jun 2025 15:40

does the status of "Planned" on this bug mean that it will be corrected ? i have the same issue and need to know how to solve it.