Ao usar AutoFit, as colunas são carregad com o width automático correto, porém, ao agrupar os registros, as colunas ficam com as informações cortando

<SfGrid  @ref="ReportGrid"
            DataSource="Report"
            ID="Grid"
            RowHeight="36"
            AllowGrouping="true"
            AllowResizing="true"
            AllowFiltering="true"
            EnableVirtualization="true"
            on
            Height="500"
            AllowReordering="true"
            AllowSorting="true"
            AllowMultiSorting="true"
            ShowColumnChooser="true"
            Toolbar="@(new List<string>() { "Print", "PdfExport", "ExcelExport", "CsvExport" })"
            AllowExcelExport="true"
            AllowPdfExport="true" >
                <GridEvents OnToolbarClick="ToolbarClickHandler" OnActionComplete="ActionCompletedHandler" TValue="TimeRecordReportDTO"></GridEvents>
                <GridFilterSettings  Type="Syncfusion.Blazor.Grids.FilterType.Excel" ></GridFilterSettings>
                <GridColumns>                
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.DtTimeRecord) HeaderText="Data" IsPrimaryKey=true TextAlign="@TextAlign.Center"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.ClientName) HeaderText="Cliente"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.ProjectName) HeaderText="Projeto" FilterSettings="@(new FilterSettings{ Operator = Operator.Contains })" AllowResizing="false"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.ProjectManager) HeaderText="Gestor"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.ProjectTaskDescription) HeaderText="Tarefa"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.UserName) HeaderText="Recurso"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.StartTime) HeaderText="Inicio"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.EndTime) HeaderText="Fim"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.TotalTime) HeaderText="Total horas" Type="ColumnType.Number" TextAlign="TextAlign.Right"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.TotalTime) HeaderText="Total horas" Type="ColumnType.Number" TextAlign="TextAlign.Right"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.IsBillableDescription) HeaderText="Faturável"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.IsProductiveDescription) HeaderText="Produtiva"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.BillingCost) HeaderText="Custo"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.BillingAmount) HeaderText="Faturamento"></GridColumn>
                <GridColumn AutoFit Field=@nameof(TimeRecordReportDTO.StatusDescription) HeaderText="Status"></GridColumn>
            </GridColumns>
        </SfGrid>


5 Replies

JM Jaqueline Manzano October 31, 2023 01:45 AM UTC

Ao usar o agrupamento do grid do Syncfusion, as colunas que são carregadas corretamente por conta do AutoFit ficam todas com o texto cortando.. preciso fazer com que elas fiquem com o tamanho correto mostrando toda a informação sem cortar


Attachment: grid_incorreto_agrupado_821228df.zip


PS Prathap Senthil Syncfusion Team October 31, 2023 01:18 PM UTC

Hi Jaqueline,

We are unable to reproduce the reported issue when attempting to reproduce the issue in the latest version[23.1.43]. Kindly refer to the attached sample and screenshot for your reference. To assist you further, we kindly request that you provide us with additional details.  


  • Kindly Share us the grid code snippet with model class.
  • Could you please share an issue-reproducible sample.
  • If possible, kindly share with us your attempts to reproduce the reported issue on the below-mentioned sample.

Thank you for your cooperation, and we will do our best to resolve this issue for you as soon as possible.


Sample link: https://blazorplayground.syncfusion.com/VjVACDAWztjtGNYo

Regards,
Prathap S



JM Jaqueline Manzano replied to Prathap Senthil October 31, 2023 02:47 PM UTC



PS Prathap Senthil Syncfusion Team November 14, 2023 07:41 AM UTC

We have considered this an issue and logged the defect report “Autofit feature not working properly when using the grid grouping “for the same. Thank you for taking the time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle) and this fix will be included in any of our upcoming patch releases.

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this feedback link. 
 
https://www.syncfusion.com/feedback/48424/autofit-feature-not-working-properly-when-using-the-grid-grouping
   
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization”


Until then we appreciate your patience.



PS Prathap Senthil Syncfusion Team December 19, 2023 03:40 AM UTC

We have fixed the reported issue "Autofit feature not working properly when using the grid grouping” in our Volume 4 release (24.1.41) release.  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the NuGet package for latest fixes and features below.


NuGet : https://www.nuget.org/packages/Syncfusion.Blazor.Grid


Loader.
Up arrow icon