We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to perform CRUD operations in Gantt using PHP

It is possible to perform CRUD operations in Gantt to My SQL database using PHP.

Data Binding:

Using ejDataManager we can link and get the server data from PHP file. In the following code example, we have taken the JSON data from server using getData method to pass it to Gantt control.

 Server side method to retrieve the data from database

Add operation:

actionComplete client side event will be triggered while adding new row in Gantt. Using this event, we can insert new record into the database

The code snippet to add new item to database

Server side method to add new task item into the database

 

Update operation:

The endEdit client side event will be triggered while performing cellEdit in Gantt. Using this event, we can update the database. And for dialog editing we need to update the database using actionComplete event

The code snippet to update the database after editing:

 

Server side method to update the database

 

Delete operation:

The actionComplete client side event will be triggered while deleting any row in Gantt. Using this event, we can remove the existing record from the database

The code snippet to remove the record from database:

Please find the server side method to remove the record from database

Sample link:

A Gantt sample in PHP with CRUD operations is available in the following link,

Sample

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7818 06/30/2017 06/30/2017 JavaScript ejGantt
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon