Data not rendering

Hi there

Currently evaluating the product. We are likely to purchase. Using MVC5. I was able to use JavaScript/JSONResult to collect information from the database. But this was read-only.

I found your blog on how to integrate into MVC, the example works well. When I try my own version a blank gantt chart appears and IE is frozen. I am assuming it is in a loop, maybe something to do with the data?

An example of the data I am passing:

{“data”:[{“id”:1,“text”:“Phase1”,“start_date”:“2014-09-24 11:39:34Z”,“duration”:1,“order”:10,“progress”:0,“open”:true,“parent”:0,“type”:“project”},{“id”:2,“text”:“Review Project”,“start_date”:“2014-09-24 11:39:34Z”,“duration”:1,“order”:10,“progress”:0,“open”:true,“parent”:1,“type”:“task”},{“id”:3,“text”:“List business requirements”,“start_date”:“2014-09-25 11:39:34Z”,“duration”:1,“order”:10,“progress”:0,“open”:true,“parent”:2,“type”:“task”}],“links”:[{“id”:1,“source”:1,“target”:2,“type”:“1”},{“id”:2,“source”:2,“target”:3,“type”:“0”},{“id”:3,“source”:3,“target”:4,“type”:“0”}]}

Can you see anything obvious from the above?

Many thanks.

Hi,
i’ve tried to load your data into gantt - have used it instead of static data in this example docs.dhtmlx.com/gantt/samples/01 … _json.html and everything seemed to work correctly
Make sure you specify the date format in xml_date config (setting from the example above seems to work with your data), incorrect format can be a reason of errors
docs.dhtmlx.com/gantt/api__gantt … onfig.html

If it still not working - please attach a demo project so we could reproduce it locally

Thank you for your prompt reply. I will investigate further.