How do I go about setting the DueDate in "RED" when the Date value for Due Date is past
obj.colModel = [
{ title: "ID", hidden: true, dataIndx: "ID" },
{ title: "", minWidth: 27, width: 27, type: "detail", resizable: false, editable: false, exportRender: false /* no need to mention dataIndx */ },
{ title: "Task Name Name", width: 250, dataIndx: "Title", exportRender: false,
filter: { crules: [{ condition: 'contain' }],
/* filter: { type: "textbox",
condition: 'contain',
listeners: ['keyup']*/
},
render: function(ui) {
return "<a href='" + thisWebUrl + "/Lists/" + listName + "/" + formName + ".aspx?ID=" + ui.rowData.ID + "&Source=" + encodeURIComponent(returnPage) + "'>" + ui.cellData + "</a>";
}
},
{ title: "Assigned Date", width: 155, align:"center", dataIndx: "StartDate",
filter: { crules: [{ condition: 'equal' }],
}
},
{ title: "Due from Assigned", width: 165, align:"center", dataIndx: "DueDate",
filter: { crules: [{ condition: 'equal' }],
}
},
{ title: "Suspense Date", width: 155,align:"center", dataIndx: "FinalReportDate",
filter: { crules: [{ condition: 'equal' }],
}
},
{ title: "Completed", width: 110, align:"center", dataIndx: "PercentComplete",
filter: { crules: [{ condition: 'equal' }],
}
},
{ title: "Assigned From", width: 155, align:"center", dataIndx: "AssignedFrom",
filter: { crules: [{ condition: 'equal' }],
}
},
{ title: "Primary Assigned To", width: 155, align:"center", dataIndx: "PrimaryAssignedTo",
filter: { crules: [{ condition: 'equal' }],
},
},
{ title: "Task Description", width: 275, dataIndx: "TaskSummaryDescription",
filter: { crules: [{ condition: 'contain' }],
},
/*Tippy code Step 1 */
render: function(ui) {
if(ui.cellData) {
return "<span class='tippy-desc' data-tippy-content='" + ui.cellData + "'>" + ui.cellData.substr(0,25) + "...</span>";
}
}
}
];