InteractiveWebAssemblyRenderMode not working when navigate to shared library...
I am using Blazor Web App template introduced in .Net Core 8.0I want to render Blazor pages as InteractiveWebAssemblyRenderMode that are shared between different projects. So I created a shared Razor...
View ArticleValidation attribute validates but does not show error message
I created a custom validation attribute:[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]public class MinByteLengthAttribute(string lengthPropertyName) : ValidationAttribute{ public...
View ArticleNo buttons (or other interactive elements) work when I use a data-bound object
I’m trying to display user identities and fetch a list of users, but buttons stop functioning if I use ApplicationUser (inherited from IdentityUser) retrieved via UserManager.@attribute [Authorize]...
View ArticleBlazor Maui Hybrid app showing main window but not the login route?
For some reason my blazor maui hybrid app is just showing a blank window my routes.razor is this is inside my PasswordManager.App<Router AppAssembly="@typeof(MauiProgram).Assembly"...
View ArticleWhy is my code not refreshing properly when calling StateHasChanged?
I've got a page that stores key value pairs and allows you to add new key value pairs to the existing list. You can't delete or modify existing pairs, but you can update the values. In order to make...
View ArticleIStringLocalizer returns key instead of value in Blazor Web Server app and is...
I have an IStringLocalizer in my app, injected through dependency injection in my TodoList page, that's supposed to provide localization for Italian and English.I'm having trouble getting it to work...
View ArticleGlobal Error handler for Blazor hybrid render mode
I'm trying to understand if is possible to have one <ErrorBoundary> for my whole .NET 8 Blazor server application. The "rendermode" is not globally set to be "InteractiveServer", its set on every...
View ArticleCultureInfo.CurrentUICulture is always default language - how to detect...
There are a lot of guys and most have things that make my code not work so i guess i'm missing something.I have a server side blazor app and i want the default language of the ui, or computer, to be...
View ArticleBlazor CascadingValue not available in descendent component
I am trying to use <CascadingValue> to pass down an instance of a component so that I can easily access its api in dependent sub components (Grid, and GridColumn for example).Say my setup is like...
View ArticleBlazor Dispose Order in a Component Hierarchy
I’m encountering an issue in a Blazor app where the Dispose() method of a parent component is called before the Dispose() of its child components.Context:We have a component called DataFence which...
View ArticleBlazor Client Exits Without Rendering Web Page [closed]
I recently updated to VS Professional 2022 17.14.11. I was following a Blazor tutorial and created a server and client app using the Blzor Web App template. I am using .Net 9.0. I run the server...
View ArticleBlazor SSR with EditForm, the EditForm model has a list of objects. How can...
---- SAMPLE Page from AI, NewValue will not update ----------@page "/test1" Seq No Employee Name New Value @for (int i = 0; i @formModel.EmpList[i].SeqNo @formModel.EmpList[i].EmpName...
View ArticleHow does Auto Render mode work in Blazor .NET 8?
I've been experimenting with Blazor in .NET 8 and I'm trying to understand how the Auto-render mode works. From what I've learned, Blazor initially uses a WebSocket connection in Auto mode to provide...
View Article.NET 9.0 No interactivity until the WASM switch on the Counter page with...
In the default Blazor web app (Auto), there is no interactivity on the counter page with InteractiveAuto until it loads and switches to WASM.Based on the description of the InteractiveAuto mode, I...
View ArticleBlazor not showing spinner when page loads
I have created a Blazor application that usesAuthentication Type = User AccountsI have added a new menu item to the account area. This new area has a spinner that is shown until the data in that area...
View ArticleErrors persist when rebuilding fixed .NET 9.0 Blazor web app (but not in...
I've loaded the Blazor web app template in Visual Studio, and I'm using .NET 9.0. I was doing some experimentation with dependency injection in order to try to get a good understanding of how that...
View ArticleBlazor Web App not hot reloading in Visual Studio
I created a new Blazor Web App (very important as WASM does work). I have the "Hot Reload" checkbox checked:When I start it up, it starts up like this:info: Microsoft.Hosting.Lifetime[14] Now listening...
View ArticleWhy does FluentTreeView only allow toggling the root node?
Problem Description & DemoI'm making a Blazor UI using the Fluent UI Library, and I'm having some problems with the FluentTreeView. It seems that only the root node can be toggled...
View ArticleHow to create an Eventcallback which has the arguments in blazor?
I need to create a Eventcallback for this following methodpublic async Task methodA(bool isLoading){ IsLoading = isLoading; this.StateHasChanged(); await Task.CompletedTask;}I've tried it using...
View ArticleHow to stretch the last column to fill the whole width?
I have a grid that displays from 1 to 4 panels in columns. Currently I'm doing the following:<div class="row"> @{ var colmd = 3; var col = 12; var count = myPanels.Count; if (count == 1) { colmd...
View Article