Hi Tomasz,
We have analyzed the attached files and noticed that rowPosition property is assigned with “ej.TreeGrid.RowPosition.Above” in “addRecord” method. It is not a valid rowPosition for Gantt hence the reported issue occurs.
Please find the valid enum values for Gantt row position:
· ej.Gantt.RowPosition.Top
· ej.Gantt.RowPosition.Bottom
· ej.Gantt.RowPosition.AboveSelectedRow
· ej.Gantt.RowPosition.BelowSelectedRow
· ej.Gantt.RowPosition.Child
Please find the code example below:
args.contextMenuItems.push({
headerText: 'task',
menuId: 'AddAboveMilestone',
parentMenuId: 'AddAbove',
eventHandler: function (args) {
this.addRecord(args.data, ej.Gantt.RowPosition.AboveSelectedRow);
}
}); |
We have also modified the attached sample for your reference. Please find the sample from below location
Please let us know, if you need any other assistance.
Regards,
Jayakumar D