JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › Color of anrow › Reply To: Color of anrow
The issue is resolved. It turns out that by using the corresponding standart function cellsClassName() , which provides each line with its own ccs, the problem is solved very simply and allows you to build any hierarchical structures.
………………
……………..
{ label: “ORGANIZATION”, dataField: “NameOrg”,align:’left’,
cellsClassName: (index, dataField, value, rowData, row) => {
var level;
var leaf’;
level=row.data.level; // level hierarchy Org
leaf= row.data.leaf; // Customer
if (leaf) { return ‘level-6’} //css for customer
if (level == 0) {
return ‘level-0’; // up level
};
if (level == 1) {
return ‘level-1’;
};
if (level == 2) {
return ‘level-2’;
};
if (level == 3) {
return ‘level-3’;
};
if (level == 4) {
return ‘level-4’;
};
}, /// end cellsClass name