Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
novfal
@novfal
row*
Christian Oleson
@Christian-Oleson
I’m not following
novfal
@novfal
tempsnip.png
I did like this but i want expand entire row
Christian Oleson
@Christian-Oleson
Replace the entire row code with the expansion panel
samsbase
@samsbase
Hey guys
is there a problem with the buttons not taking you to the link you put in ?
image.png
samsbase
@samsbase
I was using wrong buttons sorry !
novfal
@novfal
that's not allign coorectly @Christian-Oleson
Christian Oleson
@Christian-Oleson
You may need to use some custom css?
novfal
@novfal
OK
kurtnelle
@kurtnelle
Hey guys. Is there a way to make a button as small as the icon?
bauermalzwei
@bauermalzwei
Hey guys, quick question: Is there any event that fires for selecting an item in e.g. MatSelect ? Like "OnChanged"? Reason is I want to use it for some content filtering, so I need to know when the user change the value to request data from an API. I see that ValueChanged exists but is not compatible when using @bind-value. So how would I do that?
Homero Lara
@HomeroLara
hey guys, i'm new to Blazor so please excuse me if my question is dumb:
  • recently started using MatBlazor, awesome component lib, on a project that is also using Bootstrap. i'm using Bootstrap to help with ui layout only and i haven't run into any issues, yet. so my question: is it okay to MatBlazor and Bootstrap? any advice is much appreciated. thanks!
Christian Oleson
@Christian-Oleson
Hey @HomeroLara ,
It’s not okay at all. They are two competing designs, and will cause problems when included in the same project
It’s not a Blazor issue either, but a design issue
Homero Lara
@HomeroLara
ahh, okay. thanks for the quick response @Christian-Oleson
Christian Oleson
@Christian-Oleson
NP!
Riccardo
@riccardo10

Hi guys,
I'm new to MatBlazor and decided to try it out as it has 300K + downloads on Nuget. 👍
I got the MatProgressBar component working easy enough in the FetchData Blazor sample that comes with Visual Studio.
But when I tried the MatTable component on the same sample I get this error which doesn't make sense as I'm not making any HTTP calls:
InvalidOperationException: Cannot provide a value for the 'Http' property on type MatBlazor.MatTable...There is no registered service of type 'System.Net.Http.HttpClient'.
Here is the code

        <MatTable Items="@forecasts" LoadInitialData="true">
            <MatTableHeader>
                <th>Date</th>
                <th>Temp. (C)</th>
                <th>Temp. (F)</th>
                <th>Summary</th>
            </MatTableHeader>
            <MatTableRow>
                <td>@context.Date.ToShortDateString()</td>
                <td>@context.TemperatureC</td>
                <td>@context.TemperatureF</td>
                <td>@context.Summary</td>
            </MatTableRow>
        </MatTable>

Any help would be appreciated.

Christian Oleson
@Christian-Oleson
@riccardo10 ,
Check the setup docs for how to get that to work. MatTable depends on an HttpClient
Alaa Masalmeh
@alaa-m
hello
how to use MatSelectValue in MatDialog
Christian Oleson
@Christian-Oleson
What us the issue you are having?
Riccardo
@riccardo10
Thanks @Christian-Oleson. I actually found the answer by watching a YouTube tutorial.
I have scanned the official docs but didn't find that.
Still, all good now 👍
Riccardo
@riccardo10

Apologies as I forgot to specify the solution for anyone else who runs into the same issue (See my earlier post dated 30 December 2020 @ 14:56 hours)
This is applicable to Blazor Server projects only.

In the ConfigureServices method of the Startup class, include the following line of code:

services.AddScoped<HttpClient>();
Christian Oleson
@Christian-Oleson
@riccardo10 ,
Here I see the documentation indicating the services need to be registered. If there is any ambiguity that you think you can clarify, would you mind opening a PR? We obviously want the documentation to be as clear as possible. Thanks!
https://www.matblazor.com
novfal
@novfal
can we customize Matfileupload
Christian Oleson
@Christian-Oleson
How do you need to customize it?
novfal
@novfal
image.png
like this
Nguyen Trong Thanh
@rambothanh
hi all ! how to install datepicker for my project
Christian Oleson
@Christian-Oleson
@rambothanh I would follow the documentation here:
https://www.matblazor.com
And also here:
https://www.matblazor.com/DatePicker
For using date picker.
Andreas Grech
@sdktraceur
Guys, what about DataTable?
I seen that roadmap contain this component
Does anybody know what exactly will be changed or implemented?
Richard Wellum
@RichardW1001_twitter
Hi :) is there a way to get MatTextField to update immediately, i.e. onkeydown or similar?
Christian Oleson
@Christian-Oleson
@sdktraceur ,
Not sure to be honest. There may be some code in dev for it, otherwise I have no clue.
@RichardW1001_twitter ,
I believe you can still use the events that you normally would with @onkeydown, @onkeyup, etc.
Whoops for whoever I just tagged...
GunnarSA
@GunnarSA

Hi,

Is there a way to deal with timezones in the MatDatePicker component? What shows correctly in a normal input gets borked by a difference in local time and utc. The TimeZoneKit seems deprecated and no longer available on Nuget. I found someone writing about fiddling with what's returned server side, but it doesn't seem like a great idea to me because it displays correctly in normal html input. Example:

image.png
image.png
GunnarSA
@GunnarSA
(would also love to see an actual timepicker component, or a way to disable the calendar in the popout without disabling the whole popout)
Christian Oleson
@Christian-Oleson
@GunnarSA ,
I believe there is a GitHub issue for that
GunnarSA
@GunnarSA
The stuff I wrote in the parentheses I assume? Or both?
Christian Oleson
@Christian-Oleson
The time zone bug is a known issue. I don’t quite remember what all is tracked in GitHub. If something doesn’t exist, feel free to open an issue. We could use more contributors on the project
GunnarSA
@GunnarSA
I see. Is there a workaround for it? Because fiddling with time zones doesn't seem to be a good idea, messes up the data quite easily and/or won't be applicable outside of a certain setup. I could do something like adjust all the datetimes in my view and make sure to "fix" them before they're actually used for anything, but that's pretty darn ugly and is just begging to cause trouble at some point. Honestly probably a better idea to just avoid the component and use raw HTML if it comes down to that.
Christian Oleson
@Christian-Oleson
I would check the GitHub issues. I don’t have an answer, unfortunately