This is a migrated thread and some comments may be shown as answers.

Want to show relevent google icons/images into gantt chart columns along with start/end date columns

1 Answer 43 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Ajmal
Top achievements
Rank 1
Ajmal asked on 06 Nov 2017, 09:36 AM

Need to show google icons into gantt chart column to see the status of task. Here is my code!

var tasksDataSource = new kendo.data.GanttDataSource({
    data:DS,
        schema: {
            model: {
                id: "id",
                fields: {
                sr: { from: "sr", type: "number" },
                    id: { from: "id", type: "string" },
                    runtimes: { from: "runtimes"},
                    parentId: { from: "parentId", type: "string", defaultValue: null, validation: { required: true } },
                    start: { from: "start", type: "date", format: "{0:MM/dd/yyyy}" },
                    end: { from: "end", type: "date", format: "{0:MM/dd/yyyy}" },
                    diff: { from:"diff", type: "string" },
                    title: { from: "title", defaultValue: "", type: "string" },
                    summary: { from: "summary", type: "boolean" },
                    expanded: { from: "expanded", type: "boolean", defaultValue: true }
                },
                computedRuntimes: function() {if (this.runtimes == JSON.stringify({"included":true,"pending":true,"executed":false}) ) {

x.push("a");

}
if (this.runtimes == JSON.stringify({"included":true,"pending":true,"executed":true}) ) {
x.push("b");
}
if (this.runtimes == JSON.stringify({"included":false,"pending":false,"executed":true}) ) {
x.push("b");
}
if (this.runtimes == JSON.stringify({"included":true,"pending":false,"executed":true}) ) {
x.push("c");
}
return x;
}
            },
        }
    });

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 08 Nov 2017, 08:08 AM
Hello,

I have replied to the other thread you have submitted. Please post there if you have additional queries. 

With that said, please avoid submitting duplicate threads. This will enable us to keep better track of the support history and provide better service.


Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
NumericTextBox
Asked by
Ajmal
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or