This is a migrated thread and some comments may be shown as answers.

Gantt Chart won't Bind

5 Answers 202 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Kamalesha
Top achievements
Rank 1
Kamalesha asked on 23 Nov 2015, 04:18 AM

Hello, 

I'm using Telerik Controls for the first time and was trying to get the GanttChart to work.

I've followed the same table structure as referred in the Website for both Tasks and Dependencies. Also have created the Datasources for both and assigned them to bind the Gantt Chart. But even after I enter some data into the tables the Chart won't show anything in the Runtime. I've tried to Bind it programmatically as well but no use.

Please throw some light on how to do that or where am I going wrong. 

Thanks,

Ani

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 23 Nov 2015, 09:11 AM
Hello,

You have to have at least one task in your database with ParentId equal to NULL, which will be the root of your project. In your sample data I see that you have the task's ParentId equal to its ID, which is the reason you are not seing any data. Change the ParentId to NULL and it should work.

Regards,
Bozhidar
Telerik
0
Kamalesha
Top achievements
Rank 1
answered on 23 Nov 2015, 11:42 AM
That worked smooth.. thanks a ton
0
Daniel Aquere
Top achievements
Rank 2
answered on 04 Apr 2016, 11:16 PM

Hi Kamalesha and Bozhidar,

I´m trying to use this control, without sucess.

Please, is it possible to upload a full example, with database/tables and source code?

Thanks in advance.

Regards

Daniel

0
Daniel Aquere
Top achievements
Rank 2
answered on 04 Apr 2016, 11:42 PM

in time...

I use .net C# code.

thanks

0
Bozhidar
Telerik team
answered on 05 Apr 2016, 06:51 AM
Hi,

You can refer to the following help articles, which will get you started with a working Gantt:
http://docs.telerik.com/devtools/aspnet-ajax/controls/gantt/data-binding/database-structure
http://docs.telerik.com/devtools/aspnet-ajax/controls/gantt/data-binding/server-side-binding/declarative-binding

If you have any further issues, I would advise to open a separate support ticket, since the issue of this forum thread has already been resolved.

Regards,
Bozhidar
Telerik
Tags
Gantt
Asked by
Kamalesha
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Kamalesha
Top achievements
Rank 1
Daniel Aquere
Top achievements
Rank 2
Share this question
or