79323902

Date: 2025-01-02 13:52:26
Score: 4.5
Natty:
Report link

Olá!

Enfrentei o mesmo problema, precisava definir a largura fixa para a coluna de células. No meu caso, a solução foi usar CellStyle="width: 160px;".

Encontrei a solução no repositório do projeto: https://github.com/MudBlazor/MudBlazor/discussions/4920


Hi!

I faced the same issue, I needed to set a fixed width for the cell column. In my case, the solution was to use CellStyle="width: 160px;".

I found the solution in the project's repository: https://github.com/MudBlazor/MudBlazor/discussions/4920


<TemplateColumn Title="Celular" CellStyle="width: 160px">
            <CellTemplate>
                @if (context.Item.CellPhones?.Any() == true)
                {
                   @CelularHelperFormat.FormatCelular(
                    string.Join(", ", context
                                .Item
                                .CellPhones
                                .Select(c => $"{c.FullNumber}"))
                   );
                }
            </CellTemplate>
        </TemplateColumn>
Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2): solução
  • Blacklisted phrase (2): Olá
  • Whitelisted phrase (-2): I found the solution
  • RegEx Blacklisted phrase (2): Encontrei
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Maurício Dionísio