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.
Unfortunately, activation email could not send to your email. Please try again.

Resizing grid with Detail Template

Thread ID:

Created:

Updated:

Platform:

Replies:

126205 Sep 30,2016 01:23 PM Oct 3,2016 08:26 AM ASP.NET MVC 1
loading
Tags: Grid
Fernanda
Asked On September 30, 2016 01:23 PM

Hello,

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

@(Html.EJ().Grid<ViewModel>("DetailTemplate")
        .Datasource((IEnumerable<object>)Model.Data)
        .IsResponsive(true)
        .Locale(Culture)
        .AllowTextWrap()
        .AllowPaging().PageSettings(page => { page.PageSize(10); })
        .AllowFiltering()
        .FilterSettings(
            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();
        })
        .DetailsTemplate("#tabGridContents")
        .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?

Regards,
Fernanda

Attachment: grid_a6c76807.zip

Ragavee U S [Syncfusion]
Replied On October 3, 2016 08:26 AM

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. 

Regards, 
Ragavee U S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;