We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Resizing grid with Detail Template


I have a grid with a Detail Template that is set as responsive and has four columns, each with a different priority:

        .AllowPaging().PageSettings(page => { page.PageSize(10); })
            filter => { filter.FilterType(FilterType.Excel); }
        .Columns(col =>
            col.Field(c => c.Col1).IsPrimaryKey(true).Width(75).Add();
            col.Field(c => c.Col2).Width(100).Priority(3).Add();
            col.Field(c => c.Col3).Width(120).Priority(1).Add();
            col.Field(c => c.Col4).TextAlign(TextAlign.Right).Width(100).Priority(2).AllowFiltering(false).Add();
        .ClientSideEvents(eve => { eve.DetailsDataBound("detailGridData"); })

If I resize the browser when the details are not visible, the grid behaves as expected and the columns are removed according to their priority, with the content properly aligned beneath them.

However, when the details are visible, the rows become 'shorter' and the content is no longer aligned with the headers.

Is there any way to fix this?


Attachment: grid_a6c76807.zip

1 Reply

RU Ragavee U S Syncfusion Team October 3, 2016 12:26 PM UTC

Hi Fernanda, 

Thanks for your interest in Syncfusion products. 

We have analyzed the screenshots that you have shared. The Detail Template Grid doesn’t support priority columns feature. So it is not possible to achieve your requirement. 

Ragavee U S. 

Live Chat Icon For mobile
Up arrow icon