Hi and thank you for the response.
I am not seeing that. Each line of data is being formatted through "GetMessageSpan " and in the format function I have a debug statement that writes to the immediate window and every time I select/deselect an item in one of the drop downs the entire grid view is scrolled in the immediate window. All drop downs are in a separate div from the DataGrid that is in it's own div.
The GetMessageSpan below removes embedded formatting char's and colors lines based on event type. "StateHasChanged" is not called anywhere except in the initial function "OnAfterRenderAsync".
The reloading is not being called from any of the code from what I can see. I traced it to the rendering tree code in ASP .net. We are using the latest 5.0.1 of entity framework core and asp net core. Thanks.
EDIT: Actually, clicking anywhere on the grid also triggers the @((MarkupString)GetMessageSpan(logs)) code.
<RadzenGridColumn Width="75px" TItem="Logs" Property="logs.Timestamp" Title="Time Stamp" TextAlign="TextAlign.Left">
<HeaderTemplate><span style='color:black; font-weight:normal; font-size:12px'>Time Stamp</span></HeaderTemplate>
<Template Context="logs">
<span style="color:black; font-weight:normal; font-size:12px">@logs.Timestamp</span>
</Template>
</RadzenGridColumn>
<RadzenGridColumn Width="60px" TItem="Logs" Visible="@ShowIPColumn" Property="@IPAddress" Title="IP Adress" TextAlign="TextAlign.Left">
<HeaderTemplate><span style='color:black; font-weight:normal; font-size:12px'>IP Adress</span></HeaderTemplate>
<Template Context="logs">
<span style="color:black; font-weight:normal; font-size:12px">@IPAddress</span>
</Template>
</RadzenGridColumn>
<RadzenGridColumn Width="600px" TItem="Logs" Property="logs.Message" Title="Message" TextAlign="TextAlign.Left">
<HeaderTemplate><span style='color:black; font-weight:normal; font-size:12px'>Message</span></HeaderTemplate>
<Template Context="logs">
<RadzenImage Path=@GetIconPath(logs) Style="width:12px; height:12px" />
@((MarkupString)GetMessageSpan(logs))
</Template>
</RadzenGridColumn>
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
GetLogDB(); //<-- This loads the database
evLogLevels = GetDropDownStrings("Level");
evSourceContext = GetDropDownStrings("SourceContext");
evNode = GetDropDownStrings("Node");
StateHasChanged(); //<-- Needed or nothing gets displayed.
}
}