Several Issues When Detail Template is used

These have been around for multiple releases, I just tracked down the triggers.

When a DetailTemplate is present AND grouping is applied, multiple issues appear with resizing a column.  Sometimes it will graphically adjust the next column over, but apply the change to the column you were actually adjusting.  Other times it will actually adjust a different column from the one you were changing.

Also the following set of steps will cause a crash: 1) Adjust the width of a column with no grouping applied, 2) Group by some column.

See code below (remote desktop is messing with my screen recorder or I'd post a video, sorry!).


@page "/"
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.Buttons

<SfButton OnClick="@(async () => _state = await Grid.GetPersistData())">Save State</SfButton>
<SfButton OnClick="@(() => Grid.SetPersistData(_state))">Set State</SfButton>
<SfButton OnClick="@(() => Grid.ResetPersistData())">Reset State</SfButton>
<div style="        height: 90vh;
        width: calc(100vw - 250px) !important;">
    <SfGrid @ref="Grid" ID="GridOneTwo" DataSource="@Orders" Width="100%" Height="100%" EnablePersistence="true" AllowPaging="true" AllowFiltering="true" AllowGrouping="true" AllowSorting="true" AllowReordering="true" AllowResizing="true">
        <GridColumns>
            <GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" TextAlign="TextAlign.Right"></GridColumn>
            <GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name"></GridColumn>
            <GridColumn Field=@nameof(Order.OrderDate) HeaderText="Order Date" Format="d" Type="ColumnType.Date" TextAlign="TextAlign.Right"></GridColumn>
            <GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="TextAlign.Right"></GridColumn>
        </GridColumns>
    <GridTemplates>
        <DetailTemplate>
            TEST
        </DetailTemplate>
    </GridTemplates>
    </SfGrid>
</div>

@code {
    SfGrid<Order> Grid;

    public List<Order> Orders { get; set; }

    public string _state;

    protected override void OnInitialized()
    {
        Orders = Enumerable.Range(1, 75).Select(x => new Order()
        {
            OrderID = 1000 + x,
            CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)],
            Freight = 2.1 * x,
            OrderDate = DateTime.Now.AddDays(-x),
        }).ToList();
    }

    public class Order
    {
        public int? OrderID { get; set; }
        public string CustomerID { get; set; }
        public DateTime? OrderDate { get; set; }
        public double? Freight { get; set; }
    }
}


4 Replies

JC Jonah Coleman September 24, 2020 03:11 AM UTC

Crap, I had this written up for a couple of days and didn't notice your most recent release fixed the resizing issues.

The exception/crash is still present, however.


VN Vignesh Natarajan Syncfusion Team September 24, 2020 11:55 AM UTC

Hi Jonah,  

Thanks for contacting Syncfusion support.  

Query: “Also the following set of steps will cause a crash: 2) Group by some column. 
  
We have validated the reported issue and we are able to reproduce the reported issue at our end while preparing a sample as using the provided code example. We have considered it as a bug and logged the defect report for the same “Exception occur while grouping a column after resizing it”. Thank you for taking the time to report this issue and helping us improve our product. Fix for the issue will be included in our weekly patch release expected to be rolled out by mid of October 2020.  
 
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.      
  
 
Till then we appreciate your patience.   

Regards, 
Vignesh Natarajan 

 



JC Jonah Coleman September 24, 2020 12:44 PM UTC

Thanks!


VN Vignesh Natarajan Syncfusion Team September 25, 2020 04:18 AM UTC

Hi Jonah,  

Thanks for the update.  

We will get back to you once the weekly patch release gets successfully rolled out along with the fix for the reported issue.   
  
Till then we appreciate your patience.  

Regards, 
Vignesh Natarajan  


Loader.
Up arrow icon