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

Filter and/or Redraw a Diagram

1 Answer 199 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 03 Jun 2016, 07:24 PM

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?

Tim

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 Jun 2016, 08:00 AM
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.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Diagram
Asked by
Tim
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or