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.
Unfortunately, activation email could not send to your email. Please try again.

How to update changes from Gantt control to SQL database

How to update changes from Gantt control to SQL database

Actions done in Gantt such as add, edit, delete and row drag/drop can be updated to SQL database using the client side event ActionComplete and RowDragStop with the help of AJAX post method. The event argument ‘requestType’ of the ‘ActionComplete’ client side event is used to identify the type of action performed in Gantt such as save, update, delete, add new task. Please refer the below code example for updating the changes to the database.

 

 

Code behind [C#]:

 

Creating Gantt object

 

Update method to update the changes from Gantt to SQL database:

 

 

Add method to add new tasks to SQL database

 

 

Delete method to delete the tasks from SQL database

 

Sample link:

A simple sample to add, edit, delete and update the data to the SQL database through Gantt is available in the following link.

Sample

Article ID: Published Date: Last Revised Date: Platform: Control:
5562 11/06/2015 08/01/2017 ASP.NET Web Forms Gantt
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.