Change Schedule Dates in JQuery Gantt widget

20 Jul 20181 minute to read

In Gantt it is possible to change the schedule start date and end date programmatically in button click by using updateScheduleDates public method.
We can pass start date and end date as method arguments to calculate.

The follow code example explains how to changes dates in button click.

  • <button onclick="updateScheduleDates()">Change Schedule dates</button>
    <div id="gantt" style="height:450px;width:700px"></div>
    <script type="text/javascript">
        function updateScheduleDates() {
                var ganttObj = $("#gantt").data("ejGantt");