4,807 questions
0 votes
1 answer
19 views
Mudblazor datagrid templatecolumn defining filteroperators
I have a MudDatagrid from mudblazor with a template column which I am trying to filter. The templatecolumn has a property called FilterOperators which I cannot figure out how to use properly. I do not ...
-4 votes
0 answers
48 views
Tree view context menu is very inconsistent. The context menu sometimes only displays after scrolling and sometimes doesn't seem to dispaly at all [closed]
As mentioned in the subject line the tree view context menu is very inconsistent where sometimes the context menu display only after scrolling and at other times it shows instantly! Please view the ...
0 votes
0 answers
30 views
Blazor WASM MSAL: Redirect to admin page after token expiration with localStorage credentials
I'm using Blazor WebAssembly with MSAL for authentication and storing Azure AD B2C credentials in localStorage. My setup is roughly like this: builder.Services.AddMsalAuthentication(options =&...
0 votes
1 answer
122 views
Blazor with .NET 10 mode: @rendermode @(new InteractiveWebAssemblyRenderMode(prerender: false))
I am updating a Blazor web assembly project from .NET 9 to .NET 10, and noticed a change in behavior with the following line of code: @rendermode @(new InteractiveWebAssemblyRenderMode(prerender: ...
0 votes
1 answer
58 views
Why are my context menus for the Client, Site and Division not displaying
As mentioned in the subject line why are my context menus for the Client, Site and Division not displaying when running the code shown below! I've only includes the relevant sections below: <div @...
0 votes
1 answer
67 views
"crawled - currently not indexed" Error when using Blazor client-side
I have an ASP.NET Core Razor Pages website where most pages are purely server-rendered, and they’re all indexed by Google just fine. However, I have three pages that contain Blazor WebAssembly ...
0 votes
0 answers
28 views
Add InteractiveServer page to InteractiveAuto webapp
I have created a Blazor webapp which was created using Auto interactivity (and individual authentication). Working to add to the webapp I have understood that InteractiveAuto means using ...
1 vote
3 answers
118 views
Can I "soft reload" a Blazor page component without a full browser reload?
I'd like to reload a Blazor page component without triggering a full browser reload. Using NavigationManager to reload works, but I'm looking for a softer approach: The page itself stays loaded, so ...
0 votes
0 answers
51 views
How to use JSExport in two projects in the same web+C# app
I started with a working app with static exported C# methods like [SupportedOSPlatform("browser")] // suppress CA1416 "only supported on: 'browser'" public static partial class ...
Best practices
1 vote
2 replies
91 views
How to handle errors in Blazor WebAssembly?
I have been using this ServiceResponse model to communicate data between an Azure Function backend and a Blazor WebAssembly frontend: public class ServiceResponse<T> { public T? Data { get; ...
1 vote
0 answers
66 views
Why does the MudBlazor Tree View display the edit view on the 1st click but all subsequent clicks only change the URL & does not update the view
As mentioned in the subject line I wanted to know why the MudBlazor Tree View display the edit view on the 1st click but all subsequent clicks only change the URL & does not update the view. ...
0 votes
1 answer
84 views
How can I send my refresh tokens via httponly cookie to standalone blazor WebAssembly?
I've been trying for a couple days to implement refresh tokens into my ASP.NET Core Web API, but to no avail. I've currently got an ASP.NET Core Web API that allows someone to log in with a username ...
1 vote
0 answers
59 views
Debugging not working with Blazor WASM app served though MVC app when ran through Docker-Compose
I created an ASP.NET Core MVC application that serves up a Blazor WASM application. I then want to Dockerize it and run it with docker-compose so I can run it with some other stuff so the other ...
2 votes
1 answer
77 views
Conditionally rendering HTML in Blazor
If I use an if statement to render a block of HTML in a Blazor WebAssembly app, does it actually get rendered and not displayed if the condition is false? Something like this: @if(isSectionVisible) { ...
0 votes
1 answer
115 views
Blazor virtualization for items with different sizes
Blazor supports virtualization but items need to have same height. For most cases it's okay, but for example for chats where amount of messages can be high and messages have different heights due to ...