blazor.web.js:1
[2024-08-30T15:21:55.886Z] Error: Microsoft.JSInterop.JSException: Cannot read properties of undefined (reading 'classList')
TypeError: Cannot read properties of undefined (reading 'classList')
at Object.focusTableRow (https://localhost:5001/_content/Radzen.Blazor/Radzen.Blazor.js?v=5.1.5.0:677:48)
at https://localhost:5001/_framework/blazor.web.js:1:3047
at new Promise ()
at y.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.web.js:1:3004)
at gn._invokeClientMethod (https://localhost:5001/_framework/blazor.web.js:1:62730)
at gn._processIncomingData (https://localhost:5001/_framework/blazor.web.js:1:60119)
at connection.onreceive (https://localhost:5001/_framework/blazor.web.js:1:53760)
at i.onmessage (https://localhost:5001/_framework/blazor.web.js:1:81866)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object args)
at Radzen.Blazor.RadzenDropDownDataGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
down the version to 5.1.0, no problem.
Fixed immediately and Radzen.Blazor 5.1.6 released!
Same problem in Radzen.Blazor 5.1.6
blazor.web.js:1
[2024-08-30T15:56:52.721Z] Error: Microsoft.JSInterop.JSException: Cannot read properties of undefined (reading 'classList')
TypeError: Cannot read properties of undefined (reading 'classList')
at Object.focusTableRow (https://localhost:5001/_content/Radzen.Blazor/Radzen.Blazor.js?v=5.1.6.0:677:48)
at https://localhost:5001/_framework/blazor.web.js:1:3047
at new Promise ()
at y.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.web.js:1:3004)
at gn._invokeClientMethod (https://localhost:5001/_framework/blazor.web.js:1:62730)
at gn._processIncomingData (https://localhost:5001/_framework/blazor.web.js:1:60119)
at connection.onreceive (https://localhost:5001/_framework/blazor.web.js:1:53760)
at i.onmessage (https://localhost:5001/_framework/blazor.web.js:1:81866)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object args)
at Radzen.Blazor.RadzenDropDownDataGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Try to clear your browser cache.
blazor.web.js:1 [2024-08-31T09:35:08.224Z] Error: Microsoft.JSInterop.JSException: Cannot read properties of undefined (reading 'classList')
TypeError: Cannot read properties of undefined (reading 'classList')
at Object.focusTableRow (https://localhost:5001/_content/Radzen.Blazor/Radzen.Blazor.js?v=5.1.6.0:677:48)
at https://localhost:5001/_framework/blazor.web.js:1:3244
at new Promise ()
at y.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.web.js:1:3201)
at gn._invokeClientMethod (https://localhost:5001/_framework/blazor.web.js:1:62841)
at gn._processIncomingData (https://localhost:5001/_framework/blazor.web.js:1:60316)
at connection.onreceive (https://localhost:5001/_framework/blazor.web.js:1:53957)
at i.onmessage (https://localhost:5001/_framework/blazor.web.js:1:82102)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object args)
at Radzen.Blazor.RadzenDropDownDataGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Rebooted, cleared browser cash to no avail
Let us know how to reproduce the error.
Clear browser cache, reboot, but still problem.
blazor.web.js:1
[2024-08-31T10:06:52.196Z] Error: Microsoft.JSInterop.JSException: Cannot read properties of undefined (reading 'classList')
TypeError: Cannot read properties of undefined (reading 'classList')
at Object.focusTableRow (https://localhost:5001/_content/Radzen.Blazor/Radzen.Blazor.js?v=5.1.6.0:677:48)
at https://localhost:5001/_framework/blazor.web.js:1:3047
at new Promise ()
at y.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.web.js:1:3004)
at gn._invokeClientMethod (https://localhost:5001/_framework/blazor.web.js:1:62730)
at gn._processIncomingData (https://localhost:5001/_framework/blazor.web.js:1:60119)
at connection.onreceive (https://localhost:5001/_framework/blazor.web.js:1:53760)
at i.onmessage (https://localhost:5001/_framework/blazor.web.js:1:81866)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object args)
at Radzen.Blazor.RadzenDropDownDataGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Without runnable code demonstrating the issue we will unable to help.
Changed version from 5.1.6 back to 5.0.9 and error went away.
Changed version from 5.1.6 back to 5.1.2, no error. attached code:
PickLocations.zip (4.1 KB)
I donβt see any code, again we need runnable code demonstrating the problem. Check also our forum FAQ on how to format code.
Attached code already.
Radzen Blazor 5.1.4 οΌ no problem.
Attached right code as below:
PickLocations.razor.zip (5.3 KB)
Can confirm this is a problem with 5.1.6
Steps to reproduce:
- Set up a Blazor Server project (.NET 6)
- Set up Radzen 5.1.6 (following the Get Started guide)
- In Index.razor, write a simple RadzenDropDownDataGrid with a @bind-Value (if not bound, it runs just fine):
@page "/"
@using Radzen.Blazor
<RadzenDropDownDataGrid TValue="int" Data="new List<int>() { 1, 2, 3 }" @bind-Value=Number />
@code
{
private int Number { get; set; }
}
- Run and get an exception on page load
As a new user I can't upload attachments, but this should be enough.
EDIT: bug does not seem to occur in 5.1.4
I was able to reproduce and fix the problem - Radzen.Blazor 5.1.7 was just released.
I have a same problem in 5.1.4.
And another error that also occurs is: The property @bind-SelectedItem fails if used in the 'RadzenDropDownDataGrid' component in this version.