Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Browsing all 4839 articles
Browse latest View live
↧

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 Article


Validation 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 Article


No 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 Article

Image may be NSFW.
Clik here to view.

Blazor 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 Article

Image may be NSFW.
Clik here to view.

Why 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 Article


IStringLocalizer 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 Article

Global 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 Article

CultureInfo.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 Article


Blazor 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 Article


Blazor 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 Article

Blazor 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 Article

Blazor 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 Article

How 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


Image may be NSFW.
Clik here to view.

.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 Article

Blazor 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 Article


Image may be NSFW.
Clik here to view.

Errors 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 Article

Image may be NSFW.
Clik here to view.

Blazor 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 Article


Image may be NSFW.
Clik here to view.

Why 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 Article

How 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 Article

How 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
Browsing all 4839 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>