Questions tagged [matblazor]

MatBlazor is an open-source set of Material Design components for Blazor and Razor.

This tag should be used for questions that are specific to MatBlazor and its components.

Useful links:

66 questions
26
votes
2 answers

When to use ValueChanged and ValueExpression in Blazor?

I'm seeing this common pattern in some libraries (MatBlazor, Telerik) of having ValueChanged and ValueExpression properties and it really confuses me. What is the difference between both? And when to use it?
Vencovsky
  • 28,550
  • 17
  • 109
  • 176
25
votes
5 answers

How to stop event propagation in Blazor Server app

I'm using Grid.Blazor library to render server side grid on Blazor app. One of the column has a button with click event. So when button is clicked then grid row event is also fired along with button click event. I want to stop event propagation and…
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
6
votes
3 answers

Blazor cascading AuthorizeView Policy not working

I'm working on a new project that will have some in depth policies for what user can and can't access/see, with Identity Server 4. I'm trying to use AuthorizeView with policies to hide options in my navigation, but the views are cascading, meaning…
Steve
  • 1,061
  • 10
  • 21
6
votes
1 answer

How I can Load another Razor Component into a Razor Component by a Button-click?

I just want to load a razor component into another razor component when user click search button then I want to show search razor component (page) into a hidden div when the user click hide button then it will be hidden. like inline popup.
user10324250
4
votes
5 answers

Blazor WebAssembly App - Warn user on navigation - warn user before leaving web page with unsaved changes

I have implemented the following code in wwwroot - index.html: "use strict"; (() => { const modified_inputs = new Set; const defaultValue = "defaultValue"; // store default values addEventListener("beforeinput", (evt) => { const target =…
Ogglas
  • 62,132
  • 37
  • 328
  • 418
4
votes
1 answer

Blazor Material without bootstrap

Is it possible to use Blazor Material without using/referencing the Bootstrap Library ? I have removed the links to the bootstrap .css files in the Blazor web assembly template and it appears that obviously the bootstrap styles aren't working…
Carlos Lopez
  • 74
  • 1
  • 3
4
votes
2 answers

how to make matblazor RTL (right to left)

I'm new to Blazor and recently I'm learning it. Does anyone knows how to make Matblazor components Right To Left ?
Arash.Zandi
  • 1,010
  • 2
  • 13
  • 24
4
votes
3 answers

MatBlazor select issue

my code should be like this, but it's getting null reference exception @foreach (var item in TumAtikTipleri) {
lkmcelik
  • 77
  • 2
  • 10
4
votes
2 answers

MatDialog: controlling overall size regardless of content size

Using MatBlazor (1.5.4) MatDialog, I'm interested in having the dialog size fixed or set to a percentage of the total page. Currently, the behaviour is that the dialog opens with its size fitting the content. I tried adding explicit styling in…
Askolein
  • 3,250
  • 3
  • 28
  • 40
3
votes
1 answer

What is the difference between MatBlazor and Material.Blazor?

Of the packages that bring Material Design to Blazor ASP.Net Core apps, there are two that seem very similar, namely MatBlazor and Material.Blazor. Even the respective documentation pages (e.g. MatBlazor button and Material.Blazor button) are very…
Greg Trevellick
  • 1,361
  • 1
  • 16
  • 26
3
votes
2 answers

Blazor, MatBlazor - How to catch the value change of MatSelect component

I have used the MatBlazor framework for my project. In MatSelect, I want to catch its value onchange event to do some other works. I have tried some solutions but the onchange event has not fired yet.
duongtt
  • 87
  • 1
  • 7
3
votes
2 answers

Separate code file in Blazor gives bogus warning messages

I have a server side Blazor application. There are two options when it comes to writing a razor page under Blazor: Design code and C# code in one ".razor" file and separated design and code files as ".razor" and ".razor.cs" files. The problem is…
Celal Ergün
  • 955
  • 2
  • 14
  • 30
3
votes
2 answers

Blazor route with encrypted parameters

How can I make my Blazor application to receive the encrypted parameters that contain the encoded special characters such as "/" and "+". My screenshot can be found here How should I configure the Blazor parameters, so that they are split and…
2
votes
0 answers

How to modify the dragged object during a drag&drop event?

I am trying to obtain the dragged element in order to modify it while is dragged. More specifically, I have a list in the following format: List<(int, string)> list_item = new List<(int, string)> { (0, "item 1"), (1, "item 2"), (2, "item 3"), (3,…
2
votes
1 answer

Blazor with MatBlazor using MatTableRow in AuthorizeView causes same parameter name error

Error: The child content element 'MatTableRow' of component 'MatTable' uses the same parameter name ('context') as enclosing child content element 'Authorized' of component 'AuthorizeView'. Code:
Ogglas
  • 62,132
  • 37
  • 328
  • 418
1
2 3 4 5