Destroy Gantt Control in JQuery Gantt widget

Gantt control is composed with more sub-controls like TreeGrid, Splitter, Dialog etc. So while destroying the Gantt control we need to
remove all sub-control elements and unbind all events bound by this control. By using destroy public method, we can properly remove the Gantt control from DOM.

The following code example explains how to destroy Gantt control.

  • javascript
  • $("#gantt").ejGantt("destroy");

    NOTE

    If you want to re-initialize Gantt control on same div element,
    we need to perform destroy action before re-initialize the Gantt.