When having @ref and SettingsChanged on a DataGird Compoment together the is SettingsChanged Method is called infinity often #1130

Closed
opened 2026-01-29 17:49:20 +00:00 by claunia · 1 comment
Owner

Originally created by @Alex-Dall on GitHub (Feb 20, 2024).

Hello,
as described in the headline the following Code is calling Writing "Hello" to the console for an infinity amount after i change a setting for the first time (change page, apply a filter, ...). The application is haning up because of this infinity loop.

 <RadzenDataGrid @ref="@_serverLog" TItem="ServerLog" FilterMode="FilterMode.SimpleWithMenu" AllowFiltering="true" AllowSorting="true" AllowGrouping="true" AllowPaging="true" PageSize="25" Style="height: calc(100vh - 160px)" RowRender="@RowRender" SettingsChanged="@(() => { Console.WriteLine("Hallo"); })">
[...]

Do I make somthing wrong or is this a bug?

King regards,
Alex

Originally created by @Alex-Dall on GitHub (Feb 20, 2024). Hello, as described in the headline the following Code is calling Writing "Hello" to the console for an infinity amount after i change a setting for the first time (change page, apply a filter, ...). The application is haning up because of this infinity loop. ``` <RadzenDataGrid @ref="@_serverLog" TItem="ServerLog" FilterMode="FilterMode.SimpleWithMenu" AllowFiltering="true" AllowSorting="true" AllowGrouping="true" AllowPaging="true" PageSize="25" Style="height: calc(100vh - 160px)" RowRender="@RowRender" SettingsChanged="@(() => { Console.WriteLine("Hallo"); })"> [...] ``` Do I make somthing wrong or is this a bug? King regards, Alex
Author
Owner

@enchev commented on GitHub (Feb 23, 2024):

The code is not complete - please use our forum to post such questions.

@enchev commented on GitHub (Feb 23, 2024): The code is not complete - please use our forum to post such questions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1130