Edit this page

Open Gantt Task Editor on Treelist Click

Environment

Product Progress Kendo UI Gantt
Operating System All
Browser All
Preferred Language JavaScript

Description

How can I show the editor of the Gantt when I select tasks in the treelist?

Solution

  1. Attach a click handler to the rows in the treelist of the Gantt.
  2. Call the editTask method of the Gantt and pass the dataItem of the selected task as a parameter.
    <script>
        $(document).ready(function() {
          $(".k-gantt").delegate(".k-gantt-treelist .k-grid-content tr", "click", function(e) {
            var gantt = $("#gantt").data("kendoGantt");
            var task = gantt.dataItem(this);
            gantt.editTask(task);
          });
        });
    </script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy