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

Razor Class Library with TailWindCSS not working correctly

I have a Razor Class Library that is using TailWind CSS. The library is being consumed by a Blazor Web App. Both projects are .NET9. When I load a component from the RCL in the consuming Web App...

View Article


What are different options for adding responsive styles to an HTML element in...

ContextI'm making a small website. I'm using .NET's Blazor framework.I added the styling in the style tags of the HTML elements. This made my website much simpler to code.<div style=" margin: 6px...

View Article


Blazor WASM .NET 9 - NETSDK1082 Error: No runtime pack

I am working on a Blazor web assembly project with multiple projects in a single solution. However, when I try to build the solution using dotnet build, I get the following error:error NETSDK1082:...

View Article

Blazor localhost and IP Issue

I have a big problem with which I no longer know what to do.I have created a multilingual DevExpress XAF Blazor Server App which is working so far. When I access the site with http://localhost:8080 or...

View Article

Use ref of inherited component in .NET Blazor

How can I access the MudMenu ref properties when using the Menu component? If I use the Menu _menuRef, then I don't have access to MudMenu properties. If I use MudMenu _menuRef, then I get access to...

View Article


Binding input in a child component in Blazor WASM app

I'm working on my version of an auto complete component in a Blazor WASM (Standalone) app targeting .NET 9.I'm able to bind an input to a string variable and take action as user types in his/her search...

View Article

How to use FluentAutocomplete whe TOption is class object

I have two class models :Country.cspublic class Country{ public long Id { get; set; } public string Code { get; set; } public string Name { get; set; }}Airport.cspublic class Airport : BaseModel{...

View Article

Blazor Syncfusion sfgrid export to Excel

I'm trying to Export a list from a filtered Syncfusion grid to Excel. I followed the code from an example. The code runs but nothing seems to happen. I haven't been able to solve this by looking at...

View Article


How do I get text from IStringLocalizer from file on Blazor? [closed]

I'm trying to use Istringlocalizer from C# on an MudBlazor html solution. I've got all Istringlocalizer configuration and it is working all correctly but I can't get the text from a file.To put it on...

View Article


Filter for Timespan in RadzenDataGrid

I have a RadzenDataGrid where I display a Timespan that comes from a DB. When I want to filter the timespan (e.g. for "is not null", nothing happens and the args.Filter has no value, so it is just "it...

View Article

Proper way to call async method from component property

When consuming a component in another razor component, there is usually a need to call async methods triggered by an EventCallback property, onClick for instance. Is there any particular way to call it...

View Article

Blazor Server: forceLoad: true causes "IAuthenticationService" error on page...

I am working on an internal tool that displays data from a database. The application uses authentication, managed by a CustomAuthStateProvider, which allows users to log in and out. Certain actions are...

View Article

Using Blazor for generating static serverless website (without .NET server...

Short question:I try to store the HTML output of a Blazor to a file in order to have a static website, but I don't find the file. What am I missing?Long questionSome time ago I asked a question about...

View Article


How to use FluentAutocomplete when TOption is class object

I have two class models :Country.cspublic class Country{ public long Id { get; set; } public string Code { get; set; } public string Name { get; set; }}Airport.cspublic class Airport : BaseModel{...

View Article

Blazor and Razor in same application

I am relatively new to blazor. I have created a razor page with login functionality, that attaches a cookie with a redirect, when login is ok.My test flow:When I run my app, i'll need to show...

View Article


Restore NavMenu item when clicking it

I have a list being shown on a page that is filtered by a bool parameter that I'm using to pass to a component:ProjectList.razor:@if (IsDetail == true){<ProjectDetail...

View Article

NavigationManager.Uri does not update at all unless page is refreshed. How to...

I have a link in a side menu like this (Blazor Server):<NotAuthorized><li class="nav-item px-3"><NavLink class="nav-link" href="@($"LoginIDP?redirectUri= {NavigationManager.Uri}")">...

View Article


Blazor Collocate js and cs files

It is possible to collocate a .js file and a related .razor file as described here.Is there a way to collocate a .js file and .cs file in a similar way? I image it looking similar to...

View Article

Razor elements not recognized

When starting up my Blazor Server solution everything seems fine. It builds and all custom elements in the razor files look fine with highlighted green color (using black theme).But when making a tiny...

View Article

Blazor doesn't work in a Docker container

I have an ASP.NET Core 8.0 MVC (upgraded from .NET 6.0) project; it's working fine in a Docker container except for the pages that contain Blazor code. I'm getting an errorblazor.server.js:1...

View Article
Browsing all 4051 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>