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

Multiple diagrams in one panel

5 Answers 114 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 29 Feb 2016, 03:13 PM
Is is possible to have multiple diagrams (tree structures) in the same drawing panel? If so is there an example of how this would be done?

5 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 02 Mar 2016, 09:43 AM
Hello Marc,

I am not sure if I understand correctly the question but multiple tree structures will be shown if you have multiple roots(example). If this is not what you are trying to achieve then please provide more detailed information.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Marc
Top achievements
Rank 1
answered on 02 Mar 2016, 03:28 PM

yes, I meant multiple roots, thanks for your reply, that helped me.

One other question. Is there a simple way to optimize the layout for printing on a typical page size (8.5 x 11, 11 x 17, etc)?

 

0
Daniel
Telerik team
answered on 04 Mar 2016, 10:17 AM
Hello again,

Could you clarify what you mean by "printing"? Generally speaking in the case of multiple layout components you can somewhat control the resulting size via the layout.grid.width option and the distances between the elements for the specific layout but there is no way to ensure certain size in all cases without scaling the elements.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Marc
Top achievements
Rank 1
answered on 04 Mar 2016, 04:51 PM

I meant logic that would maintain the basic tree layout, but rearrange the outlying elements to dimensionally fit on a page. Sorry I don't know a better way to describe it, but this is what our users do manually in visio and we are trying to simulate it programmatically.

One more question. Is there way to clean up the connectors in the tipover layout, so they are outside of the rectangle elements. See attached.

 

0
Daniel
Telerik team
answered on 08 Mar 2016, 08:58 AM
Hi,

There isn't a layout option that could be used for this purpose. I can suggest either to use the bringIntoView method or the shapes position method to rearrange the outlying shapes after the layout is completed. 

As for the tipover connections issue - which version are you using? This should happen automatically with the latest versions as can be seen in this demo.

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
Marc
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Marc
Top achievements
Rank 1
Share this question
or