Grid header goes blank after reordering columns

When using the HeaderTemplate feature grid headers will disappear after reordering columns.
This does not happen without the template.


@page "/test"

@using Microsoft.Extensions.Primitives

<h1>My Grid</h1>

<p>This component demonstrates fetching data from a service.</p>

@if (orders==null)
{
    <p><em>Loading...</em></p>
}
else
{

<EjsGrid DataSource="@orders" @ref="Grid"  AllowReordering="true" AllowResizing="true" AllowSorting="true">

    <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Normal"></GridEditSettings>
    <GridColumns>
        <GridColumn Field="Id" IsPrimaryKey="true" TextAlign="TextAlign.Left" Width="120">
            <HeaderTemplate>Id</HeaderTemplate>
        </GridColumn>

        <GridColumn Field="Customer" IsPrimaryKey="true" TextAlign="TextAlign.Left" Width="120" >
            <HeaderTemplate>Customer</HeaderTemplate>
        </GridColumn>
    </GridColumns>
</EjsGrid>

}

@code {

    public class Order
    {
        public int Id { get; set; }
        public string Customer { get; set; }
    }

    private List<Order> orders;
    EjsGrid<Order> Grid;


    protected override async Task OnInitializedAsync()
    {
        orders = new List<Order>()
        {
            new Order()
            {
                Id = 1,
                Customer = "John"
            },
            new Order()
            {
                Id = 2,
                Customer = "Sara"
            }
        };
    }

}



1 Reply

RN Rahul Narayanasamy Syncfusion Team March 20, 2020 12:52 PM UTC

Hi Tomer, 

Greetings from Syncfusion. 

Query: Grid header goes blank after reordering columns 

We have validated your query and we are able to reproduce the reported issue at our end. We have considered it as a bug and logged defect report for the same header template is lost while reordering the columns” . 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 next Bi-Weekly release which is expected to be rolled out on or before 15th April 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, 
Rahul 


Loader.
Up arrow icon