Hey admin,
Can i coloring Progress bar?
if progress under 50%, it will be RED.
if it between 50 and 70, it will be Yellow.
and if it 100%, it will be Green.
Thanks for your attention.
:)
regards,
Rahadian
3 Answers, 1 is accepted
0
Alex Gyoshev
Telerik team
answered on 25 Aug 2014, 01:39 PM
Hello Rahadian,
While there is no out-of-the-box property that enables this, you can bind an event handler to the dataBound event and modify the rendered tasks via jQuery.
dataBound: function() {
var gantt = this;
gantt.element.find(".k-task").each(function(e) {
var dataItem = gantt.dataSource.getByUid($(this).attr("data-uid"));
// colorize task per business requirements
if (dataItem.percentComplete < .5) {
this.style.backgroundColor = "#f99";
} else {
this.style.backgroundColor = "#9f9";
}
});
}