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

Custom RadDiagramContainerShape Example

3 Answers 156 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 24 Feb 2014, 12:21 AM
Do you have a simple example of a custom container where the header is removed? I wanted to create a container control where i can control the layout of the items within the container.

3 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 26 Feb 2014, 01:08 PM
Hi,

I am happy to inform you that such approach is demonstrated in our online Swimlane demo.

Please take a look at it and let me know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
0
Michael
Top achievements
Rank 1
answered on 26 Feb 2014, 04:25 PM
Pavel,

Thank you for getting back to me. I did look at the swimlane example, but i was looking for an example without the header in the container. I was able to hide it, but when it's dragged and re-sized it reappears and doesn't seem to be calculating the dimensions correctly. I couldn't seem to find a property to hide and / or set the height of the header to 0.
0
Pavel R. Pavlov
Telerik team
answered on 28 Feb 2014, 04:01 PM
Hi,

You are right that there is no straightforward way to achieve the required behavior. However, there is a possible way to hide the header of the container shapes.

You can try extracting the default template of the RadDiagramContainerShape control. You can follow the steps described in this article.

For your convenience I extracted it along with all resources that it uses in the attached file. Once imported into your application you can try setting the Visibility property of the ContentPresenter called "NormalContent" to Collapsed.

Please give this approach a try and let me know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
Tags
Diagram
Asked by
Michael
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Michael
Top achievements
Rank 1
Share this question
or