Bug: summary tasks are not displayed properly when "columns" array is defined.

5 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    17 posts
    Member since:
    Oct 2014

    Posted 25 Feb 2015 Link to this post

    Hello, I found a bug. Summary tasks (which have children) are not displayed properly when "columns" array is defined in kendoGantt .
    This bug is present in the latest version (2014.3.1411) too.
    If "columns" array is removed summary tasks are displayed normally.
    Link with the bug.
  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 25 Feb 2015 Link to this post

    Hello,

    You have to specify the field with lowercase in the column definition. Here's the updated example:
    http://dojo.telerik.com/EReJO/6

    Regards,
    Bozhidar
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Dmitry
    Dmitry avatar
    17 posts
    Member since:
    Oct 2014

    Posted 25 Feb 2015 in reply to Bozhidar Link to this post

    Unfortunately this is not acceptable solution. Each data source item has fields (properties of the object) "title" (from Kendo default schema) and "Title" (from user fields). Since java script is case sensitive those fields represent different properties. There can be many other user fields ("Description", "ReminderDate", "TaskCost", etc.) and they are not intersect default kendo fields like "title", "start", "end", etc. What if I do not want do display default task title. I provide custom columns array without "title" field and get the same incorrect behaviour with summary tasks. Link with the example. Nothing is written in the documentation that "title" field is required field in the "columns" array.

    Since Kendo Gantt requires at least one column to be displayed I guess that correct behaviour with displaying summary tasks should be the following: display triangle (which expands children tasks) in the first table column (even if the first field in the columns array is not "title"). Can be such behaviour achieved in the latest (2014.3.1411) version? 
  5. Dmitry
    Dmitry avatar
    17 posts
    Member since:
    Oct 2014

    Posted 25 Feb 2015 in reply to Bozhidar Link to this post

    Unfortunately this is not acceptable solution. Each data source item has fields (properties of the object) "title" (from Kendo default schema) and "Title" (from user fields). Since java script is case sensitive those fields represent different properties. There can be many other user fields ("Description", "ReminderDate", "TaskCost", etc.) and they are not intersect default kendo fields like "title", "start", "end", etc. What if I do not want do display default task title. I provide custom columns array without "title" field and get the same incorrect behaviour with summary tasks. Link with the example. Nothing is written in the documentation that "title" field is required field in the "columns" array.

    Since Kendo Gantt requires at least one column to be displayed I guess that correct behaviour with displaying summary tasks should be the following: display triangle (which expands children tasks) in the first table column (even if the first field in the columns array is not "title"). Can be such behaviour achieved in the latest (2014.3.1411) version? 
  6. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 26 Feb 2015 Link to this post

    Hello,

    The title field is indeed not required, however the expand/collapse and tree-like display where the child items are offset to the right it bound only to the column representing the "title" field of the gantt datasource schema. Currently there is not way to change this behavior, but we will research how we can enable it in the future.

    Regards,
    Bozhidar
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready