You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this issue still being watched ? Putting min-width in style (for both th and td bleah!) only resizes them when mattable has no data, when it is filled the columns go back to standard size. Sizing of the columns of the table should be managed in some way otherwise this component becomes unusable!
I have spent hours fiddling with this with no success. I can't find a way to limit the overall size of the matTable and the individual columns dont want to resize. There needs to be a way to at least make the last column fill the table space otherwise this control is extremely limited as to when you can actually use it.
But, unfortunatelly, it's not possible to declare on MatTable directly.
Html tables do support width in th tags, please see this HTMLFiddle...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS).
No I don’t think its possible with MatTable. I did manage to get a fixed size to work on the MatSelect buy overriding this CSS :
/*override this stop set select box widths*/
.mdc-select__anchor {
min-width:350px !important
}
So it’s likely there will a CSS for the table, but I don’t see how you could set the width on a column by column basis using CSS, as obviously columns are dynami.
I hope they fix this otherwise I’ll have to find a better table component.
From: Federico Di Marco <notifications@github.com>
Sent: 11 October 2020 10:49
To: SamProf/MatBlazor <MatBlazor@noreply.github.com>
Cc: Dave Oakley <oakleydave@hotmail.com>; Comment <comment@noreply.github.com>
Subject: Re: [SamProf/MatBlazor] MatTable (#277)
By searching how to solve this problem, I found this option on default html table:
<table>
<colgroup>
<col span="1" style="width: 15%;">
<col span="1" style="width: 15%;">
<col span="1" style="width: 70%;">
<col span="1" style="width: 15%;">
</colgroup>
</table>
But, unfortunatelly, it's not possible to declare on MatTable directly.
Html tables do support width in th tags, please see this HTMLFiddle<https://jsfiddle.net/0zkjbv4w/>...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#277 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANHJKJWDSQZUMLKB7LWDUSTSKF5PLANCNFSM4I4SZQWA>.
No I don’t think its possible with MatTable. I did manage to get a fixed size to work on the MatSelect buy overriding this CSS : /override this stop set select box widths/ .mdc-select__anchor { min-width:350px !important } So it’s likely there will a CSS for the table, but I don’t see how you could set the width on a column by column basis using CSS, as obviously columns are dynami. I hope they fix this otherwise I’ll have to find a better table component. From: Federico Di Marco notifications@github.com Sent: 11 October 2020 10:49 To: SamProf/MatBlazor MatBlazor@noreply.github.com Cc: Dave Oakley oakleydave@hotmail.com; Comment comment@noreply.github.com Subject: Re: [SamProf/MatBlazor] MatTable (#277) By searching how to solve this problem, I found this option on default html table:
I might be using an older version of matTable as it does not recognise <MatColGroup> as a valid child component?
From: Henrique Clausing <notifications@github.com>
Sent: 11 October 2020 22:20
To: SamProf/MatBlazor <MatBlazor@noreply.github.com>
Cc: Dave Oakley <oakleydave@hotmail.com>; Comment <comment@noreply.github.com>
Subject: Re: [SamProf/MatBlazor] MatTable (#277)
No I don’t think its possible with MatTable. I did manage to get a fixed size to work on the MatSelect buy overriding this CSS : /override this stop set select box widths/ .mdc-select__anchor { min-width:350px !important } So it’s likely there will a CSS for the table, but I don’t see how you could set the width on a column by column basis using CSS, as obviously columns are dynami. I hope they fix this otherwise I’ll have to find a better table component. From: Federico Di Marco notifications@github.com<mailto:notifications@github.com> Sent: 11 October 2020 10:49 To: SamProf/MatBlazor MatBlazor@noreply.github.com<mailto:MatBlazor@noreply.github.com> Cc: Dave Oakley oakleydave@hotmail.com<mailto:oakleydave@hotmail.com>; Comment comment@noreply.github.com<mailto:comment@noreply.github.com> Subject: Re: [SamProf/MatBlazor] MatTable (#277<#277>) By searching how to solve this problem, I found this option on default html table:
But, unfortunatelly, it's not possible to declare on MatTable directly. Html tables do support width in th tags, please see this HTMLFiddlehttps://jsfiddle.net/0zkjbv4w/...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS). — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#277 (comment)<#277 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHJKJWDSQZUMLKB7LWDUSTSKF5PLANCNFSM4I4SZQWA.
Hi,
Well, on private tests here with the PR #749<#749> , it appears to be one possibility to resolve.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#277 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANHJKJVA3FO27UNGNBCL25DSKIORFANCNFSM4I4SZQWA>.
I might be using an older version of matTable as it does not recognise as a valid child component? From: Henrique Clausing notifications@github.com Sent: 11 October 2020 22:20 To: SamProf/MatBlazor MatBlazor@noreply.github.com Cc: Dave Oakley oakleydave@hotmail.com; Comment comment@noreply.github.com Subject: Re: [SamProf/MatBlazor] MatTable (#277) No I don’t think its possible with MatTable. I did manage to get a fixed size to work on the MatSelect buy overriding this CSS : /override this stop set select box widths/ .mdc-select__anchor { min-width:350px !important } So it’s likely there will a CSS for the table, but I don’t see how you could set the width on a column by column basis using CSS, as obviously columns are dynami. I hope they fix this otherwise I’ll have to find a better table component. From: Federico Di Marco notifications@github.commailto:notifications@github.com Sent: 11 October 2020 10:49 To: SamProf/MatBlazor MatBlazor@noreply.github.commailto:MatBlazor@noreply.github.com Cc: Dave Oakley oakleydave@hotmail.commailto:oakleydave@hotmail.com; Comment comment@noreply.github.commailto:comment@noreply.github.com Subject: Re: [SamProf/MatBlazor] MatTable (#277<#277>) By searching how to solve this problem, I found this option on default html table: But, unfortunatelly, it's not possible to declare on MatTable directly. Html tables do support width in th tags, please see this HTMLFiddlehttps://jsfiddle.net/0zkjbv4w/...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS). — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#277 (comment)<#277 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHJKJWDSQZUMLKB7LWDUSTSKF5PLANCNFSM4I4SZQWA. Hi, Well, on private tests here with the PR #749<#749> , it appears to be one possibility to resolve. — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#277 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHJKJVA3FO27UNGNBCL25DSKIORFANCNFSM4I4SZQWA.
for anyone with the same issue as Gitsheva above, I found a workaround. Just put a bunch of non-breaking spaces after your column header name until its as wide as you want and you don't get the weird white-space bug
I think this product has been abandoned, I don't see any replies for a long time.
Shame because it had some good features but can't be responsive if you can't use %age ColumnWidth.
Activity
rogeralsing commentedon Oct 2, 2019
Also, is there any way to use MatTable w/o databinding just as a plain table, for look and feel consistency?
milenpav commentedon Oct 3, 2019
i fix it this on MainLayout
<MatDrawerContainer Style="width: 98vw; height: 99vh;">dannyaguilerar commentedon Oct 8, 2019
Newbie here: Its not much, but you could choose one of the columns you prefer and set the style as such:
<th style="width:100%;">Details</th>This way Details column will always get the rest of the available width in the column. It also fixes the column header when its empty. Hope it helps.
GitSheva commentedon Jul 23, 2020
is this issue was fixed? I can't make it work. I'm adding width % to each column
not too much to ask right? any thoughts?
GitSheva commentedon Jul 23, 2020
partially fixed this with min-width, thanks.
fededim commentedon Sep 3, 2020
Is this issue still being watched ? Putting min-width in style (for both th and td bleah!) only resizes them when mattable has no data, when it is filled the columns go back to standard size. Sizing of the columns of the table should be managed in some way otherwise this component becomes unusable!
daveoakley commentedon Sep 28, 2020
I have spent hours fiddling with this with no success. I can't find a way to limit the overall size of the matTable and the individual columns dont want to resize. There needs to be a way to at least make the last column fill the table space otherwise this control is extremely limited as to when you can actually use it.
daveoakley commentedon Sep 28, 2020
Actually, i think i've solved it. By setting width:100% on the 2nd column, it seems to place the last column where i need it to be:
HClausing commentedon Oct 9, 2020
By searching how to solve this problem, I found this option on default html table:
But, unfortunatelly, it's not possible to declare on MatTable directly.
HClausing commentedon Oct 10, 2020
I've created a PR #749 with this proposal for MatTable.
fededim commentedon Oct 11, 2020
Html tables do support width in th tags, please see this HTMLFiddle...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS).
daveoakley commentedon Oct 11, 2020
HClausing commentedon Oct 11, 2020
Hi,
Well, on private tests here with the PR #749 , it appears to be one possibility to resolve.
daveoakley commentedon Oct 12, 2020
HClausing commentedon Oct 12, 2020
Hi @daveoakley ,
The Pull Request for this feature isn't approved by admin yet. It's not available for all. I have only on my fork of this repository here.
dorana commentedon Oct 26, 2020
Having the same issue, really hoping the PR gets approved, merged a new new NuGet gets released ^_^
pfeds commentedon Nov 9, 2020
Same issue.
tiajean commentedon Nov 27, 2020
What is your issue? Can you post your code? I just started using MatBlazor but do not have this issue with my tables.
ldcroberts commentedon Jan 12, 2021
https://blazorfiddle.com/s/60ed0fn6
ldcroberts commentedon Jan 14, 2021
for anyone with the same issue as Gitsheva above, I found a workaround. Just put a bunch of non-breaking spaces after your column header name until its as wide as you want and you don't get the weird white-space bug
BobLangdown commentedon Mar 1, 2021
I think this product has been abandoned, I don't see any replies for a long time.
Shame because it had some good features but can't be responsive if you can't use %age ColumnWidth.