DataGrid disappering column after hiding column in column chooser, resizing other column and showing previously hidden column

Hi, 

I have a DataGrid which looks approximately like the following:

<SfGrid TValue="Account" AllowPaging="true" AllowFiltering="true" AllowSorting="true" AllowTextWrap="true" AllowResizing="true" ShowColumnChooser="true" Toolbar="@(new string[] { "Add", "Edit", "Delete", "ColumnChooser"})">
<SfDataManager AdaptorInstance="@typeof(AccountAdapter)" Adaptor="Adaptors.CustomAdaptor"></SfDataManager>
<GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Dialog" ShowDeleteConfirmDialog="true"></GridEditSettings>
<GridColumns>
<GridColumn Field="@nameof(Account.Id)" HeaderText="ID" TextAlign="TextAlign.Center" AllowFiltering="false" IsPrimaryKey="true" Width="300px"></GridColumn>
<GridColumn Field="@nameof(Account.Name)" HeaderText="Name" Type="ColumnType.String"></GridColumn>
<GridColumn Field="@nameof(Account.EMail)" HeaderText="EMail" Type="ColumnType.String"></GridColumn>
<GridColumn Field="@nameof(Account.PhoneNumber)" HeaderText="Phone Number" Type="ColumnType.String"></GridColumn>
<GridColumn Field="@nameof(Account.Description)" HeaderText="Description" Width="28%" Type="ColumnType.String"></GridColumn>
</GridColumns>
</SfGrid>

If I am hiding a column with the column chooser, resizing another column with the column chooser and showing the column again it doesn't show up. Instead, my whole grid gets stretched apart horizontally.

I've tried to investigate this and as far as I can see the column is not showing up because it's width in the <colgroup> element is set to 0px. The stretching comes from the wrapping of the column with 0px width.

Now my question is where does this behavior come from? Is this intended? And how can I prevent this?

Additional information:
  • Platform: Blazor WebAssembly
  • Framework: .NET 5 (5.0.202)
  • Installed Syncfusion NuGet Package: Syncfusion.Blazor.Grid (18.4.0.42)

1 Reply

RN Rahul Narayanasamy Syncfusion Team April 28, 2021 01:29 PM UTC

Hi Daniel, 

Greetings from Syncfusion.  

We have checked your query and we have confirmed it as a bug and logged the defect report “Issue with unhiding the column using column chooser after performing resize operation” for the same. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming bi-weekly release which is expected to be rolled on or before mid of June, 2021.  
     
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  
    

Until then we appreciate your patience. 

Regards, 
Rahul 


Loader.
Up arrow icon