<ejs-grid ... (headerCellInfo)='headerCellInfoEvent($event)'>
...
</ejs-grid>
export class ColumnSpanningComponent implements OnInit {
....
public headerCellInfoEvent(args: HeaderCellInfoEventArgs) {
if (args.cell.column.field === 'EmployeeID') {
args.node.colSpan = 2;
}
if (args.cell.column.field === 'EmployeeName') {
args.node.classList.add('e-hide');
}
};
....
}
|