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 ArticleHow 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 ArticleBlazorServer 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 ArticleBlazor 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 ArticleBlazor 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 ArticleUse 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 ArticleHow 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 ArticleMicrosoft 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 ArticleHigher 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 ArticleScript 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 ArticleCookieAuthentication 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 ArticleHow 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 ArticleAspire 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 ArticleHow 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 ArticleHow 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 ArticleWebsocket 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 ArticleInvalidOperationException: 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 ArticleCan 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 ArticlePass 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 ArticleTypeError: 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