let treegrid: TreeGrid = new TreeGrid(
{
dataSource: summaryRowData,
allowPaging: true,
. . . . . . . . . .. . . . .
queryCellInfo: function (args) {
var filterModule = this.grid.filterModule;
var filteredFields = Object.keys(filterModule.values);
if (filterModule["column"] != undefined) {
for (var i = 0; i <= filteredFields.length; i++) {
if (filteredFields[i] == args.column.field) {
addClass([args.cell], 'filterCell');
}
}
if (filterModule["isRemove"] == true) {
if (filterModule["column"].field
== args.column.field) {
removeClass([args.cell], 'filterCell');
}
}
}
}
columns: [
{ field: 'FreightID', headerText: 'Freight ID', width: 130 },
. . . .. . . . .. . . . . .. .
});
CSS
<style>
.filterCell{
background-color:#336c12;
color:white;
}</style> |
let treegrid: TreeGrid = new TreeGrid(
{
dataSource: summaryRowData,
allowPaging: true,
. . . . . . . . . .. . . . .
queryCellInfo: function (args) {
var filterModule = this.grid.filterModule;
var filteredFields = Object.keys(filterModule.values);
if (filterModule["column"] != undefined) {
for (var i = 0; i <= filteredFields.length; i++) {
if (filteredFields[i] == args.column.field) {
addClass([args.cell], 'filterCell');
}
}
if (filterModule["isRemove"] == true) {
if (filterModule["column"].field
== args.column.field) {
removeClass([args.cell], 'filterCell');
}
}
}
}
columns: [
{ field: 'FreightID', headerText: 'Freight ID', width: 130 },
. . . .. . . . .. . . . . .. .
});
CSS
<style>
.filterCell{
background-color:#336c12;
color:white;
}</style> |