Category "blazor"

toggle MudTable inline editing via an edit button

I am trying to get the mudtable to enter inline mode when you click on an icon. Currently it happens when you click on any row. <MudSwitch @bind-Checked="@ro

Why is my Blazor Server App waiting to render until data has been retrieved, even when using async?

I'm building a Blazor Server app using .NET 6. As an example I have a list of customers that I retrieve from a Sqlite db using Entityframework Core. I want to s

Blazor Attempting to reconnect - use web assembly, or...?

I am being plagued with the dreaded "Attempting to reconnect" message. The problem only occurs when the application is published on Azure, never when run locall

Exception: '<' is an invalid start of a value

I have a Blazor Webassembly project with a controller method as follows: [HttpGet] public async Task<List<string>> GetStatesForProfile() {

How to reset custom validation errors when using editform in blazor razor page

I have an editform using an editcontext: <EditForm OnValidSubmit="HandleValidSubmit" EditContext="_editContext" Context="auth"> <DataAnnotat

Blazor.ChartJs Mouse Click Handler not working correctly

I am writing a Blazor app using the ChartJs Blazor (Blazor.ChartJs.Fork 2.0.2) library. I am creating a bar chart with a need to determine on which bar the user

AutoMapper .NET6 C#10 Blazor WASM PWA

I had a problem that the AutoMapper worked in .NET5 with in Program.cs -> services.AddAutoMapper(typeof(Startup)); New Blazored WASM PWA do not have a Startu

Blazor Re-Ordering A list With Drag And Drop

I am learning Blazor having come from a WinForm UWP background. I have a list of Game: public class Game { public string ID { get; set; } public string

Blazor server not scaling (zoomed) on mobile

I made a small sensor application in Blazor server. However, when I view the app on my phone, it shows these scrolling bars (I always need to pinch/zoom out my

Best way to use multiple awaits C# .NET Blazor

In a Blazor app I have a file uploader that can take multiple files. When the user clicked 'upload' I used something like this: private async Task HandleFileUpl

How to load .gltf in a Blazor application

I am trying to load .gltf model using three.js into my Blazor application. However the server does not serve this type of files. I am aware that MIME type m

add class to element on hover in blazor

Note I can't just use CSS :hover because I'll also need to modify the class property on these elements based on keydown on a different element, and even if the

Is there a way to alter ChildContent in Blazor

I'd like to alter ChildContent my component receives from the parent like this: <Markdown> # Title Some _Content_ </Markdown> To interpret t

Embed JavaScript files inside a .NET class library for Blazor project

I'm working on a Blazor project and I'm trying to move one of the JavaScript files to a class library, I've read the following guides: https://docs.microsoft.co

Call method in MainLayout from a page component in Blazor

I have a Blazor app with a MainLayout page, which has a @Body to load the actual page content. In my case Index.razor is loaded inside the MainLayout page. Is

Blazor WebAssembly Hosted on IIS - only API is working

I have a project where I have developed a solution with Blazor WebAssembly Hosted model. I have a Server Project, a Client project and a Shared project (but I r

SSRS Reporting in Blazor

Has anyone had any success with integrating SSRS reporting with Blazor? If so how and what did you use? I would like to utilize my existing rdl files in Blazor

Why Return Base Method With Blazor OnInitialized Method

I am seeing more and more examples of OnInitialized and OnInitializedAsync() returning base.OnInitialized[Async]. But Why? The examples on the Microsoft websit

How to use chart.js in blazor?

I am trying to follow this example from mariusmuntean/ChartJs.Blazor : https://github.com/mariusmuntean/ChartJs.Blazor The code runs but I am getting this error

VS Code CSC : error CS1617: Invalid option '7.3' for /langversion

I downloaded VS 2017 15.7, .NET Core 2.1.2 and Blazor to try it out. It wasn't working in VS 2017 properly and thought I would try through the dotnet cli and V