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

2 posts, 0 answers
  1. Ajmal
    Ajmal avatar
    2 posts
    Member since:
    Oct 2017

    Posted 06 Nov 2017 Link to this post

    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;
    }
                },
            }
        });

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1947 posts

    Posted 08 Nov 2017 Link to this post

    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.
Back to Top