queryCellInfo: function (args) {
var index = args.data.index;
//To change the font color for selected Indexes
if (index == 1 || index == 3 || index == 5 || index == 7)
$(args.cellElement).css({ "color": "blue" });
},
queryTaskbarInfo: function (args) {
//To apply background color to parent taskbar
if (args.data.hasChildRecords) {
//To check the whether custom fields exists or not
if (args.data.item.progressbarcolor) {
args.parentProgressbarBackground = args.data.item.progressbarcolor;
}
if (args.data.item.taskbarcolor) {
args.parentTaskbarBackground = args.data.item.taskbarcolor;
}
}
//To apply background color to taskbar
else {
if (args.data.item.progressbarcolor) {
args.progressbarBackground = args.data.item.progressbarcolor;
}
if (args.data.item.taskbarcolor) {
args.taskbarBackground = args.data.item.taskbarcolor;
}
}
}, |