let grid: TreeGrid = new TreeGrid(
{
dataSource: sampleData,
childMapping: 'subtasks',
treeColumnIndex: 1,
height: 400,
queryCellInfo: (args: any)=> {
if (+args.data.progress > 90 && args.column.field === 'priority') {
args.cell.setAttribute('style', 'background-color:#336c12;color:white;');
} else if (+args.data.progress < 90 && args.column.field === 'priority') {
args.cell.setAttribute('style', 'background-color:#7b2b1d;color:pink;');
}
},
toolbar: ['Add', 'Delete', 'Update', 'Cancel'],
});
grid.appendTo('#Grid'); |
.splitter-expand .e-pane-horizontal.e-collapsed + .e-split-bar-horizontal {
display: none;
} |