931 questions
0
votes
1
answer
20
views
Mudblazor datagrid templatecolumn defining filteroperators
I have a MudDatagrid from mudblazor with a template column which I am trying to filter. The templatecolumn has a property called FilterOperators which I cannot figure out how to use properly.
I do not ...
1
vote
1
answer
49
views
How to validate MudSelect in Blazor project together with other form elements?
My example code can be found here: https://try.mudblazor.com/snippet/QYwpPPwgBPfgLWSf
I have an issue that MudSelects in custom components and in the main page do not show validation errors when ...
-4
votes
0
answers
49
views
Tree view context menu is very inconsistent. The context menu sometimes only displays after scrolling and sometimes doesn't seem to dispaly at all [closed]
As mentioned in the subject line the tree view context menu is very inconsistent where sometimes the context menu display only after scrolling and at other times it shows instantly!
Please view the ...
1
vote
1
answer
60
views
Opening a modal based on Mudradio selection in Mudblazor
I am fresh into coding and working on an UI in Mudblazor. What I am trying to do is I have a mudradio selection Yes/No, when user selects "No", it should display some text fields which I am ...
1
vote
1
answer
45
views
How to customize the appearance of MudNavLink using custom AppTheme?
I have following menu:
<MudNavMenu>
<MudNavGroup Title="Projects" Icon="@Icons.Material.Filled.List" Expanded="false">
<MudNavLink Href=&...
0
votes
0
answers
60
views
Class resets to null after login in MudBlazor because page reloads – how can I persist the user until he logs out?
I have a MudBlazor application where I use a custom CurrentUserService to store the currently logged-in user so I can display the user's profile image in the layout.
This state is not part of the ...
0
votes
1
answer
58
views
Why are my context menus for the Client, Site and Division not displaying
As mentioned in the subject line why are my context menus for the Client, Site and Division not displaying when running the code shown below! I've only includes the relevant sections below:
<div @...
1
vote
1
answer
53
views
MudFileUpload not opening file upload dialog
I'm using .NET 9.0 and MudBlazor 8.12.0.
I have this simple code shown here that is not opening any file upload dialog after gets clicked. What am I missing?
<MudFileUpload T="IBrowserFile&...
1
vote
1
answer
80
views
MudTabs throws ArgumentOutOfRangeException when loading page with query parameter
I want to set the active panel index based on a query parameter value
Problem Description
When navigating to a Blazor page containing MudTabs with a query parameter specifying the active tab index (e....
Advice
1
vote
0
replies
73
views
ASP.NET Core embedded Blazor
Preamble
In our current setup, I am developing a class library that acts as a plugin to our platform. This "works" because the executable scans its own directory and automatically loads ...
1
vote
0
answers
66
views
Why does the MudBlazor Tree View display the edit view on the 1st click but all subsequent clicks only change the URL & does not update the view
As mentioned in the subject line I wanted to know why the MudBlazor Tree View display the edit view on the 1st click but all subsequent clicks only change the URL & does not update the view. ...
2
votes
1
answer
87
views
MudBlazor Login Dialog: Enter key needs to be pressed twice before login works
I'm using C# / .NET 9 and MudBlazor, and I've implemented a login dialog with username and password fields.
The login works fine, except that I have to press ‘Enter’ twice before the dialog closes and ...
0
votes
1
answer
56
views
Setting Mudblazor's MudNavLink underline property is not working as expected
I have a project I created, a .NET MAUI Blazor Hybrid and Web App.
I followed the procedure to install Mudblazor found here: https://www.mudblazor.com/getting-started/installation#manual-install
I ...
0
votes
1
answer
47
views
In Mudblazor how to change font size and font weight of <MudTreeViewItem>
In Mudblazor how to change font-size and font-weight of MudTreeViewItem ?
2
votes
0
answers
135
views
How to create a MudTable with a fixed header that expands to fit the size of the parent container
Can anyone show me how to make a MudTable that has FixedHeader=true but that also expands to fit 100% of the vertical height of the parent container?
If I set the height property to a pixel height (e....
0
votes
1
answer
92
views
MudBlazor MudTable OnRowClick Event - examples in documentation don't work
I am using a MudBlazor MudTable. I cannot get the OnRowClick Event to work. I tried using the pattern from their documentation, but keep getting an error message.
[using .Net 8.0, MudBlazor 8.12]
...
0
votes
1
answer
113
views
Mudblazor EditForm - detect if any field value has changed
I have a MudBlazor EditForm with about 15 MudTextFields. I am following the standard pattern of binding each field to its class variable using '@bind-Value=....' All is working just fine.
Now I need ...
2
votes
1
answer
70
views
Why MudBlazor example does not work for three-level table header
My starting point is the example in the documentation:
https://www.mudblazor.com/components/table#header-and-footer
The main problem is that the data cells are not aligned at all with the leaf cells. ...
0
votes
0
answers
40
views
Column filter Turkish culture
@page "/"
@using Microsoft.EntityFrameworkCore
@using MudBlazorWebApp2.Data
@using MudBlazorWebApp2.Models
@using System.ComponentModel.DataAnnotations
@using System.Globalization
@inject ...
2
votes
1
answer
55
views
MudBlazor - MudTable doesn't open MudDialog
I'm creating a MudTable with some data, and I want to open a MudDialog to edit the row data and then save it.
<MudTable T="Company" items="@_Companies" Dense=true Hover=true ...
2
votes
3
answers
147
views
How to dynamically set an HTML header tag (h1, h2, etc.) in a Blazor component?
I want to create a reusable Blazor component that allows the user to define the HTML header tag (<h1>, <h2>, etc.) via a parameter.
My goal is to render a header dynamically like this:
<...
2
votes
1
answer
85
views
MudSelect ToStringFunc causes flicker
Adding
@* This returns the description of the selected item based on its id *@
ToStringFunc="id => dataLoader.GetDescriptionFromList(brandModelsList, id)"
causes the MudSelect ...
0
votes
0
answers
49
views
MudBlazor MudTable Sortby idictionary gives strange sorting icons which are not clickable
im trying to make a mudtable using a dictionary as datasource sortable . my current code shows this strange behaviour :Screenshot of the Table
it prints large sorting icons which are not clickable. ...
1
vote
2
answers
109
views
Blazor WebAssembly not applying culture to DateTime formatting after changing culture
I recently migrated my Blazor project from Blazor Server to Blazor WebAssembly. In the Blazor Server version, when I changed the culture (e.g., CultureInfo.CurrentUICulture = new CultureInfo("fa-...
0
votes
0
answers
110
views
Select in MudBlazor
I'm quite new to Blazor and thereby also quite new to MudBlazor and now I get an error that I cannot figure out.
My app.razor:
<!DOCTYPE html>
<html lang="en">
<head>
&...
0
votes
1
answer
40
views
MudDatePicker i define a customized "ErrorText", but when i have an error it appears the default error message
I have this code:
<MudDatePicker
Label="Data"
Editable="true"
@bind-Date="_date1"
Mask="@(new DateMask("00-00-0000"))"
DateFormat="dd-MM-...
0
votes
2
answers
67
views
Is it possible to use Items parameter with paging?
Is it possible to use the MudDataGrid Items parameter with paging? All of the examples I have seen use ServerData - but that is only 2-3 i could find.
I have tried something similar to the following ...
0
votes
1
answer
85
views
MudBlazor MudDataGrid - how to add hyperlink to cell?
I am trying to add a hyperlink to a cell which gets data from the selected entity. Is there a way to do it in the MudDataGrid? I got the impression from the documentation that the data is not ...
0
votes
1
answer
144
views
Blazor Apexcharts Line Chart line not being redrawn when new data available
I am trying to show the date on a apexgraph for each schift. When i select a day the data loads and shows no problem. but if i select a new day after i have another day selected the data loads ...
1
vote
0
answers
85
views
Input value clears on button click but not on Enter key press
I'm building a barcode scanner page using Blazor and MudBlazor. When I click the "Add" button, the barcode is successfully submitted, and the input field is cleared. However, when I press ...
1
vote
0
answers
83
views
Unable to make reactivity in Blazor Layout file using MudBlazor
So frustrated. Please help.
I have a blazor we app, created using MudBlazor template Interactive Render Mode = Auto, and Interactivity Location = Per page/component.
I have a scenario where I need to ...
0
votes
1
answer
73
views
MudBlazor MudCheckBox does not allow changing value
Using MudCheckBox, I am not able to change its value as a user by clicking the mouse.
Here is the razor markup which binds to the entity class property after reading the data
<div class=&...
0
votes
0
answers
103
views
DateRangePicker in mudblazor with UTC is behaving differently
I am working with mudblazor Daterangepicker. I wanted to make sure the date I selected will be saved as UTC not any other date kind. so I used ToUniversalTime() but instead of making it 24' hrs clock ...
1
vote
1
answer
72
views
Migrations aren't activating on a new ASP.NET Core project
I need to preface this with pointing out this is my first web app project. I am trying to make a Blazor web application with ASP.NET Core.
When I create a new project and run the code, any database ...
2
votes
2
answers
72
views
MudDialog with progress won't open while writing data to XML
I created a custom dialog component with MudProgressCircular (Child razor) that should display the progress while writing the part details to the XML output file. The issue I am trying to address is ...
0
votes
0
answers
50
views
MudDataGrid unable to filter column of Version type
I am using MudBlazer DataGrid and set property Filterable=true. I am able to filter the columns with simple data type like int, string etc.
I now have a column with type "Version" that shows ...
1
vote
0
answers
84
views
MudBlazor Tab Component arrow to come back
i have a problem with my mud Blazor tab component, i'm trying to use it but whenever i'm using it i always have an arrow to come back when i click on other tab than the first one. I really want to get ...
2
votes
1
answer
150
views
MudBlazor Data Grid show index with arrow when persist data
I'm using MudBlazor's Data Grid and I'm implementing a method to save the search, sort, and pagination status. When you leave the page and return, the table displays the last search, sort, and ...
0
votes
1
answer
476
views
In default blazor login template, how do I remake the page to work with MudBlazor and other blazor components
I have the following page for external logins that is based on the default page that comes with blazor template:
@using Microsoft.AspNetCore.Authentication
@using Microsoft.AspNetCore.Http.Extensions
@...
0
votes
0
answers
91
views
How to customize expand/collaps column in mudTable
I have mudTable with 2 columns and with 2 group definitions. I would like to customize group column - to reduce the width of the first column of the group row. And the second problem - when I try to ...
2
votes
1
answer
652
views
.NET 9 MudBlazor Interactivity stops working after changing layouts
I've been fiddling with an empty .NET 9 Blazor Server project that has MudBlazor installed. I used the Mud Blazor Web App in this case so the Setup is standard without any changes. It's using ...
0
votes
1
answer
87
views
How to correctly align a MudButton with a MudMenu in a MudStack
I'm trying to align a MudMenu with a MudButton on a row so that the vertical centres of the two items are aligned.
This is what I've tried ("TestPage.razor"):
@page "/test-page"
&...
0
votes
0
answers
49
views
MudBlazor Drag&Drop between MudTable and MudDropZone
I have the razor page (with MudBlazor) with a MudTable at the top. The table displays . Beneath that, I have a grid of MudDropZones, rooms as columns and roles as rows. I called it . So a person has a ...
0
votes
1
answer
86
views
MudBlazor MudAutocomplete got error after updating MudBlazor to version 8
While working on a Blazor project. The razor page was functioning correctly until I updated MudBlazor to version 8. At first, code was working as expected, but when I updated the version, I am having ...
0
votes
1
answer
63
views
Blazor server disconnect, error fetching data
Good day.
I have been trying to get a site up and running with Blazor and Mudblazor for portfolio reasons, nothing really fancy. Just added a few todoapp modules and forum pages for my friends and ...
1
vote
0
answers
68
views
MudBlazor upgrade from 7 to 8 causes Mono runtime error
I have a Blazor application that is using .NET9 and MudBlazor 7. When I upgrade to version 8, I get the following in browser console:
[MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/class-init.c:...
1
vote
0
answers
199
views
Problems integrating MudBlazor with existing Blazor login page
I've been trying to enhance my Blazor Identity login page with MudBlazor components. I've encountered multiple errors that prevent it from working:
SSL Certificate Error - When I first added ...
0
votes
0
answers
47
views
MudBlazor Styling Not Applied in Razor Class Library When Used in Host Application
I'm using MudBlazor in a Razor Class Library (RCL) and facing an issue with styles not being applied correctly when the RCL is used in another application.
Setup:
I have a Razor Class Library (RCL) ...
1
vote
0
answers
158
views
MudSelect loses error validation on select
In the following MudSelect code:
<MudSelect @bind-Value="value" T="string" Label="Test Select" Error="@isInError" ErrorText="The field is in error"&...
2
votes
0
answers
96
views
Antiforgery Token not generated in Blazor server web app
I have a Blazor Server WebApp, with the render mode set accordingly, that is, in "/Account/" pages, the @rendermode=null, and set to @rendermode=InteractiveServer otherwise.
You can tell the ...