Filter and/or Redraw a Diagram

2 posts, 0 answers
  1. Tim
    Tim avatar
    2 posts
    Member since:
    Oct 2014

    Posted 03 Jun 2016 Link to this post

    I have a diagram that I finally got working, but with 8000 nodes in the org chart, I've been trying to filter based on "levels" to no avail.


    Is it possible to filter the datasource for a diagram and have the diagram redraw?  The data is, for the most part local data (populated via ajax as that is the only way I could get this thing to show properly).  I reload the local data then try to .fetch(), and .read(), but nothing works.


    I've also tried to destroy the diagram and recreate it, but that seems to kill the DOM.

    So, I though I could just filter the datasource based on the "level".  Is this possible?


  2. Daniel
    Daniel avatar
    2177 posts

    Posted 07 Jun 2016 Link to this post

    Hello Tim,

    Could you clarify what you mean to filter the datasource based on the "level"? Generally speaking the diagram should be automatically redrawn if you apply a filter to the dataSource. In case you are using HierarchicalDataSource for the binding, you can use approach similar to the one demonstrated here for the treeview to apply the filter for all levels - example.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top