Tagged: blazor components
I downloaded JQWidgets to evaluate for Blazor applications. A small sample I put together fails at runtime with the error:
Unable to cast object of type ‘Microsoft.AspNetCore.Blazor.Server.Circuits.RemoteJSRuntime’ to type ‘Microsoft.JSInterop.IJSInProcessRuntime’
when attempting to construct and initialize the <JqxTree .. /> component on a Razor page.
Searching indicates that is happening because something is acting as though it were in a Client side Blazor project rather than a Server one.
Is that in fact how JQWidgets has to be used currently in Server side Blazor apps, or is there a way to use it with normal tags and C# setup?
- This topic was modified 1 week, 6 days ago by newintellectual.
The page you point to states:
.NET Core SDK – This includes everything you need to build and run Blazor WebAssembly apps.”
and the rest proceeds along the same lines. The problem is that “Blazor WebAssembly” = Blazor Client side apps. As I indicated above, I (and many others) are using Server side Blazor. So I’m left with the same question:
“Is that in fact how JQWidgets has to be used currently in Server side Blazor apps, or is there a way to use it with normal tags and C# setup?”
1. For using Blazor with WebAssembly, you can use our new Blazor components: https://blazor.jqwidgets.com/. In the first release, server side hosting is not implemented.
Hope this answers your question.
You must be logged in to reply to this topic.