@@ -4195,6 +4195,53 @@ Prepares the widget for safe removal from DOM. Detaches all event handlers and r
41954195 gantt.destroy();
41964196 </script>
41974197
4198+ ### editTask
4199+
4200+ Opens the popup window to edit the GanttTask object which is received from the call.
4201+
4202+ #### Parameters
4203+
4204+ ##### task ` kendo.data.GanttTask `
4205+
4206+ A kendo.data.GanttTask object which represents the currently selected task.
4207+
4208+ #### Example - Edit the items from the Task Treelist.
4209+
4210+ <div id="gantt"></div>
4211+ <script>
4212+ $("#gantt").kendoGantt({
4213+ dataSource: {
4214+ transport: {
4215+ read: {
4216+ url: "https://demos.telerik.com/kendo-ui/service/gantttasks",
4217+ dataType: "jsonp"
4218+ }
4219+ },
4220+ schema: {
4221+ model: {
4222+ id: "id",
4223+ fields: {
4224+ id: { from: "ID", type: "number" },
4225+ orderId: { from: "OrderID", type: "number", validation: { required: true } },
4226+ parentId: { from: "ParentID", type: "number", validation: { required: true } },
4227+ start: { from: "Start", type: "date" },
4228+ end: { from: "End", type: "date" },
4229+ title: { from: "Title", defaultValue: "", type: "string" },
4230+ percentComplete: { from: "PercentComplete", type: "number" },
4231+ summary: { from: "Summary" },
4232+ expanded: { from: "Expanded" }
4233+ }
4234+ }
4235+ }
4236+ }
4237+ });
4238+ $(".k-gantt").delegate(".k-gantt-treelist .k-grid-content tr", "click", function(e) {
4239+ var gantt = $("#gantt").data("kendoGantt");
4240+ var task = gantt.dataItem(this);
4241+ gantt.editTask(task);
4242+ });
4243+ </script>
4244+
41984245### range
41994246
42004247Sets range to the widget.
@@ -4211,7 +4258,7 @@ An Object that have start and end parameters of type Date.
42114258
42124259#### Example - set range to the widget
42134260
4214- <div id="gantt"></div>
4261+ <div id="gantt"></div>
42154262 <script>
42164263 $("#gantt").kendoGantt({
42174264 dataSource: [
0 commit comments