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

Image may be NSFW.
Clik here to view.

Adding a singleton in a blazor Web Assembly project

I am currently learning Blazor Web assembly. So I have created a Blazor Web Assembly sandbox on .Net 6. I want to create an object that can't be reloaded on the entire lifecycle of the app, in order to...

View Article


How to make sure @ref is set for dynamic components?

I have a page Dashboard that has a local variable userDashboard and also contains 2 child components. Both components have a parameter called UserDashboard. Markup is kept simple:@if...

View Article


BlazorServer Web App falls flat when 20 odd users connect to the site?

As mentioned in the subject line our Blazor Server web app falls flat when 20 odd users connect to the site at once!Below are the details of the VM running the web app, as well as a bit more details on...

View Article

Blazor button event not firing

I am creating a Blazor Server app using the Amadeus SDK and I cannot trigger LoadFlights(), which I define in the razor.cs file, when pressing a button with the method assigned to it.Home.cs@page...

View Article

Blazor Server, Nlog ScopeContext - property propagation to all components and...

In my Blazor Server app I have LoggingCircuitHandler:public sealed class LoggingCircuitHandler: CircuitHandler{ private readonly ILogger<LoggingCircuitHandler> _logger; private IDisposable?...

View Article


Use MudBlazor MudDataGrid ServerData to load paged data from an API

In my opinion the documentation for MudDataGrid is a bit lacking when it comes to loading paged data from a dynamic source such as an API.How do I use the ServerData attribute?How do I handle row...

View Article

Image may be NSFW.
Clik here to view.

How to mix filters on RadzenDataGrid

I'm working with radzen DataGrid filters, most columns need FilterMode.SimpleWithMenu, others should use FilterMode.CheckBoxList.Using the example from...

View Article

Microsoft Entra authentication with Blazor server

I have created a blazor server application and I am using MicrosoftIdentity to authenticate the user.When I have serverprerender in _Host.cshtml it works perfectly. But does not work when I make it...

View Article


Higher Order Component for Generic Editor in Blazor

I have a class that can wrap any generic type that allows me to store localized data in a Dictionary with a default fallback.public class Localization<T>(T @default, Dictionary<string, T>...

View Article


Script js in Blazor Web Assembly project not updated in web navigator

I am working on a blazor Web Assembly project. This projects contains javascript file. Some of them are located in wwwroot/js. And others are attached to a razor component in a collocated way...

View Article

CookieAuthentication keeps recreating the cookie and authentication ticket

I have a Blazor server app that uses Cookies as the default scheme and OpenIdConnect as the challenge scheme. The app also uses a SQL Server distributed cache for the ITicketStore implementation. The...

View Article

Image may be NSFW.
Clik here to view.

How to mix filters?

I'm working with radzen DataGrid filters, most columns need FilterMode.SimpleWithMenu, others should use FilterMode.CheckBoxList.Using the example from...

View Article

Aspire can't connect to Redis in container for SignalR backplane

I have a generic .NET Blazor web application with Aspire enabled and I'm trying to setup SignalR to use Redis as backplane. The Redis is running in a docker/podman container, and Aspire dashboard...

View Article


How to handle a generic type param being changed when pattern matching is...

I have the following Blazor component:@using System.Linq.Expressions@typeparam T@switch(Value){ case bool boolValue:<InputCheckbox @bind-Value=boolValue @bind-Value:after=ChangeValue /> break;...

View Article

How to publish a Blazor web app to IIS 8.5?

I have successfully followed the complete tutorial to create the first Blazor web app through this Blazor tutorial and have it running locally.Now, I plan to publish it in IIS Manager 8.5 on Windows...

View Article


Websocket connection failed when I added Authorize attribute to the hub

So I am encountering this weird behavior with my blazor app when connecting to websocket. When I added Authorize attribute at the top of the hub, my application doesn't want to connect to the wss....

View Article

InvalidOperationException: Cannot provide a value for property...

I'm trying to make CRUD work on Blazor Webassembly, but absolutely nothing works.InvalidOperationException: Cannot provide a value for property 'QuestionService' on type...

View Article


Image may be NSFW.
Clik here to view.

Can I change the height of the popup height of TelerikMultiSelect in Blazor?

So I am trying to do what Telerik can do in their code for the Jquery version but it's not working. See below:I am trying to do a pretty simple just list of strings but there are about 80 of them so it...

View Article

Pass parameters from a Component to a Layout in Blazor Web App with (Server)...

I'm using .NET 8 Blazor Web App with static rendering (and some part is WebAssembly Interactive but it's not relevant here I think). In MVC/Razor Pages, a page could pass variables (such as a bool) to...

View Article

TypeError: Cannot read properties of null (reading 'insertBefore')

I have a deployed server-side Blazor application in production that has served many Droid Chrome clients for the past few years. Everything appears to work fine, and I have my own Droid phone that I...

View Article
Browsing all 4856 articles
Browse latest View live