RadzenDataGrid: Advanced filter reloads grid twice #882

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

Originally created by @evandixon on GitHub (Jun 13, 2023).

Describe the bug
Clicking Apply on an advanced filter in a RadzenDataGrid reloads the grid twice.

To Reproduce
Steps to reproduce the behavior:

  1. Create a RadzenDataGrid
  2. Set filter mode to advanced and set a custom LoadData delegate
  3. Apply a filter on a column and click Apply to make the popup go away. The same happens when pressing the Enter key
  4. Observe LoadData being called twice

Expected behavior
Clicking Apply only loads the data once.

Screenshots
Screenshot of the filter form I'm talking about in case I'm not adequately describing it.
image

Additional context
This appears to be related to the advanced filter popup in RadzenDataGridHeaderCell calling ApplyFilter when clicking Apply and submitting the form, when the button is a Submit button that submits the form. Changing the button type from Submit to Button resolves the issue, but I don't know if anything else would break by doing so.

Originally created by @evandixon on GitHub (Jun 13, 2023). **Describe the bug** Clicking Apply on an advanced filter in a RadzenDataGrid reloads the grid twice. **To Reproduce** Steps to reproduce the behavior: 1. Create a RadzenDataGrid 2. Set filter mode to advanced and set a custom LoadData delegate 3. Apply a filter on a column and click Apply to make the popup go away. The same happens when pressing the Enter key 4. Observe LoadData being called twice **Expected behavior** Clicking Apply only loads the data once. **Screenshots** Screenshot of the filter form I'm talking about in case I'm not adequately describing it. ![image](https://github.com/radzenhq/radzen-blazor/assets/2699524/d8a7837b-6339-4782-9146-a3400869dfa4) **Additional context** This appears to be related to the advanced filter popup in RadzenDataGridHeaderCell calling ApplyFilter when clicking Apply and submitting the form, when the button is a Submit button that submits the form. Changing the button type from Submit to Button resolves the issue, but I don't know if anything else would break by doing so.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#882