Gantt Chart won't Bind

6 posts, 1 answers
  1. Kamalesha
    Kamalesha avatar
    2 posts
    Member since:
    Dec 2013

    Posted 22 Nov 2015 Link to this post

    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

     

  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 23 Nov 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kamalesha
    Kamalesha avatar
    2 posts
    Member since:
    Dec 2013

    Posted 23 Nov 2015 in reply to Bozhidar Link to this post

    That worked smooth.. thanks a ton
  5. Daniel Aquere
    Daniel Aquere avatar
    85 posts
    Member since:
    Mar 2011

    Posted 04 Apr in reply to Kamalesha Link to this post

    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

  6. Daniel Aquere
    Daniel Aquere avatar
    85 posts
    Member since:
    Mar 2011

    Posted 04 Apr in reply to Daniel Aquere Link to this post

    in time...

    I use .net C# code.

    thanks

  7. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 05 Apr Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017