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 save data gantt control

Thread ID:





117764 Dec 9,2014 11:57 AM UTC Jun 18,2015 12:02 PM UTC ASP.NET MVC 5
Tags: Gantt
Tuvshintugs Tsoodol
Asked On December 9, 2014 11:57 AM UTC

how to model load and data save to base. how to listen control and model passed to controller save data.

John Rajaram [Syncfusion]
Replied On December 10, 2014 05:34 AM UTC

Hi Tuvshintugs,


Thanks for using Syncfusion Products.


We can load the database from the model to view via controller and we can track down the data from the view to model as input data through controller with the help of ActionComplete client side event.


Please refer the attached document for more details.


We have also prepared a sample based on this and please find the sample in the following attachment

Please let us know if you require further assistance on this.

John. R

Attachment: DocSample_1aac170e.zip

Pankaj Chatterjee
Replied On June 15, 2015 05:28 PM UTC

I am trying out the Gantt control in MVC and using ActionComplete, I notice the following behaviour.

1. If I open up the dialog using "task detail" context menu, then on Save, the appropriate controller action is called.
2. However, when I drag a Task in the cart view, then while the update is reflected on the screen, there is no call to the controller. The same is true even when I am adding or deleting a predecessor

I would like to get hold of all dependent tasks when I change the starting or ending dates of a task either from the table/grid view or from the chart view.

What changes need to be done on the code supplied?


Mahalakshmi Karthikeyan [Syncfusion]
Replied On June 16, 2015 05:50 AM UTC

Hi Pankaj,

For your kind information, we have added an additional type for the event argument ‘args.requestType’ as ‘recordUpdate’ for the ‘actionComplete’ client side event, in our volume1 main release. This type will be fired to all the changes made to either chart view or grid view. This requestType will call to each time while updating the particular task as well as its dependent tasks. Please refer the below code snippet for details.


<script type="text/javascript">


        // To update the database through dialog editing or tool bar editing

        function ActionComplete(args) {

           // To update the database during Outdent,editing,indent,predecessor update operation

            if (args.requestType === 'recordUpdate') {




This args.requestType === 'recordUpdate' will be fired whenever the actions made to data like indent, outdent, editing, and the predecessor update operations.

We have also prepared a sample based on this and you can find the sample under the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/117764/ze/DataBaseUpdate996884826

Please let us know if you need further assistance on this.


Mahalakshmi K.

Pankaj Chatterjee
Replied On June 16, 2015 12:52 PM UTC


I did download the example provided by Mahalaxmi K, however I am unable to run the same.

Environment - VS 2013 community edition, EssentialStudio community edition

1st time compile gave error. Used the StudioEssential Dashboard to migrate the project to .NET 4.5.1, the compile time error went away.

However, there are some conflict remaining which am not able to identify as the reference appear to be correct.

In the cshtml view file, syncfusion.MVC.EJ and syncfusion.EJ are not available

If I try to run, I get a configuration error.

Attaching screen shots to explain.

Please help.


Attachment: Archive_6716118e.zip

Mahalakshmi Karthikeyan [Syncfusion]
Replied On June 18, 2015 12:02 PM UTC

Hi Pankaj,

Apologize for the delay.

We have referred the screen shots provided by you in your last update. For your kind information, we have to add the necessary assembly files EJ and EJ.MVC from the essential studio installed location before attempt to render the Gantt control. We can get the above mentioned assembly files from the following location,

EJ: “C:\Program Files (x86)\Syncfusion\Essential Studio\\Assemblies\4.0 “ and

EJ.MVC: “C:\Program Files (x86)\Syncfusion\Essential Studio\\Assemblies\MVC”.

We have also prepared a new sample in the Visual Studio 2013 and 4.5.1 framework.

Sample:  http://www.syncfusion.com/downloads/support/forum/119415/ze/MVC5Gantt1507325683

Please let us know if you need further assistance on this.


Mahalakshmi K.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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