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

Resize shapes but in the same position

4 Answers 77 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Maite
Top achievements
Rank 1
Maite asked on 14 Oct 2014, 10:03 AM
Hello, 

I have 2 or more shapes in my diagram. When I make big o little all shapes at once, they changes their position and I will have to place all at the previous position. There is somehow to resize this shapes in the same position?

Thanks, 

Maite.

4 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 16 Oct 2014, 07:07 AM
Hello Maite,

I am not completely sure that I understand your scenario. I assume that you make a group selection and then you resize the selected shapes and your issue is that the shapes change their position after you resize them. If this is your scenario, please note that changing the position of the shapes is expected. Keep in mind that the RadDiagram tries to keep the positions as well as the sizes of the shapes inside the selection relative. This is the designed and expected behavior of the group selection and group resizing.

Regards,
Pavel R. Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Maite
Top achievements
Rank 1
answered on 16 Oct 2014, 07:55 AM
Hello Pavel, 

Correctly, this is my scenario. Can I change this situation? 

Thanks, 

Pavel.
0
Maite
Top achievements
Rank 1
answered on 16 Oct 2014, 07:55 AM
Ups! Sorry, I put your name in my sign. 
0
Pavel R. Pavlov
Telerik team
answered on 20 Oct 2014, 11:04 AM
Hello,

You can achieve your requirements by creating a custom Resizing service. You can subscribe to its Resizing event and you will be able to understand which shapes have been resized and you will be able to update their size and position accordingly. You can find more information about the service itself in this article. You can see a sample customization of the services of the RadDiagram in our XAML SDK repository.

Let us know if you encounter any issues.

Regards,
Pavel R. Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

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