RadiantQ jQuery Gantt Package
How to add new task using the context menu?
Previous Topic  Next Topic 

This topic shows how to add a new task to GanttControl using GanttTable Context menu


Here is the code:


var gantt = $('#gantt_container').data("GanttControl");

var tableContextMenu = gantt.TableContextMenu;

taskMenuItems = [

  {

    keyName: "MyCustomItem", name: "ADD Task", callback: function (key, opt) {


       var newRow = getNewTask();

       //To add new task.

       gantt.AddNewItem(newRow);

     }

  }]

tableContextMenu.AddNewItems(taskMenuItems, true);









� RadiantQ 2022. All Rights Reserved.