Dynamically modifying datasource

6 posts, 0 answers
  1. Gary
    Gary avatar
    62 posts
    Member since:
    Sep 2013

    Posted 02 Jun 2014 Link to this post

    I'm progressively adding children to the HierarchicalDataSource via AJAX calls that populate the items array of an exists data item with the returned results.

    The only way I've found to refresh the diagram is to recreate the HierarchicalDataSource with the revised data, and then call diagram.setDataSource(...).

    Is that the correct method? It seems a bit heavy handed to me.

    Thanks,
    Gary
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 04 Jun 2014 Link to this post

    Hi Gary,

    This is known issue. We will try to resolve it as soon as possible.

    Regards,
    Hristo Germanov
    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. Kejal
    Kejal avatar
    3 posts
    Member since:
    Jul 2015

    Posted 12 Aug Link to this post

    Do we have a solution for this now?
  5. Kejal
    Kejal avatar
    3 posts
    Member since:
    Jul 2015

    Posted 12 Aug in reply to Hristo Germanov Link to this post

    Is this issue resolved?
  6. Kejal
    Kejal avatar
    3 posts
    Member since:
    Jul 2015

    Posted 12 Aug in reply to Hristo Germanov Link to this post

    Is this issue resolved?
  7. Vessy
    Admin
    Vessy avatar
    1385 posts

    Posted 15 Aug Link to this post

    Hi Kejal,

    The issue has been resolved by implementing a refresh() method, which forces the Diagram to reload its shapes data-source. You can test it here:
    http://dojo.telerik.com/@veselinar/aKomi

    Regards,
    Vessy
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready