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

Would be possible to create separator rows as sections inside a grid


Hello Support:

Would be possible to create separator rows as sections inside a grid, like this:

TODAY

1919191919110000FL
1828282828120000NY
JAN. 3, 2016

171717171712222AL
161616161616172727WA
JAN. 5. 2016

1616161616272.00AR
262626262626.29AK
2626262612625.00PR

if this wont be possible what other option do we have.

Appreciate all your help.

Regards,



David


1 Reply

MS Mani Sankar Durai Syncfusion Team January 3, 2017 12:52 PM UTC

Hi David, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and we suspect that you are trying to achieve grouping functionality. To achieve your requirement we suggest you to enable grouping using AllowGrouping property of grid and by disabling the showGroupedColumn as false property of GroupSettings in grid. Also disable the ShowDropArea so that the group drop area will not be visible. 
Please refer the below code example. 
@{Html.EJ().Grid<Object>("FlatGrid") 
                            .Datasource((IEnumerable<object>)ViewBag.data) 
                            .AllowPaging() 
                            .AllowGrouping() 
                            .GroupSettings(group => { group.GroupedColumns(col => { col.Add("CustomerID"); }).ShowGroupedColumn(false).ShowDropArea(false); }) 
                            .Columns(col => 
                            { 
                                col.Field("EmployeeID").HeaderText("Employee ID").Add(); 
                                col.Field("CustomerID").HeaderText("Customer ID").Add(); 
                                col.Field("ShipCity").HeaderText("ShipCity").Add(); 
                                col.Field("Freight").HeaderText("Freight").Add(); 
                            }).Render(); 
} 
 


We have also prepared a sample that can be downloaded from the below link. 

Also refer the following documentation link. 

Please let us know if you need further assistance. 

Regards, 
Manisankar Durai. 


Loader.
Live Chat Icon For mobile
Up arrow icon