Read actual data from ejGantt

Hello,

could You please provide me JavaScript statement I can use to read actual Gantt data (dataSource)?

Thanks and BR
Oto


1 Reply

BM Bharath Marimuthu Syncfusion Team June 23, 2014 05:27 PM UTC

Hi Otomar ,

 

Thanks for your update.

 

You can achieve your requirement for retrieving datasource using the below code snippet ,

 

Code snippet :

 

$("#gantt").ejGantt({

       taskIdMapping: "taskID",

       //...

       //...

       //...

     })

 

function getData() {

            var data = $("#gantt").ejGantt("option", "dataSource");

            alert("DataSource Collection : " + data);

        }

 

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

 

Sample : http://www.syncfusion.com/downloads/support/directtrac/general/1168561413531681.zip

 

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

 

Thanks,

Bharath.


Loader.
Up arrow icon