Column Template

This sample demonstrates the Grid component with the stacked header and and resize feature. In this sample, we have shown multiple level of column headers.
More Details...


The Grid columns can be stacked/grouped in order to show multiple level of column headers. It can be done by setting the columns-columns property. The Grid columns can be resized by clicking and dragging at the right edge of columns header. To enable column, resize behavior, set allowResizing property as true. You can also prevent the resize of the particular column by setting columns-allowResizing as false in columns definition. In this demo, the columns OrderDate, Freight are grouped under Order Details, the columns ShippedDate, ShipCountry are grouped under Ship Details. Injecting Module: Grid features are segregated into individual feature-wise modules. To use Resize feature, we need to inject ResizeService into the @NgModule.providers section. More information on the stacked header configuration can be found in this documentation section.