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

Text creating does not work while starting to draw text region at image or another shape

1 Answer 9 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Tatiana
Top achievements
Rank 1
Tatiana asked on 13 Feb 2019, 10:51 AM

Hello!

 

Text creating does not work while starting to draw text region at image or another shape.

But when I start to draw text region at empty space it works and after that I can start drawing it at image too.

 

Could you tell me how to fix it? ( to make it work at first time?)

 

Best regards,
Tatiana

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 18 Feb 2019, 09:56 AM
Hi Tatiana,

The described behavior in your post is the default one. To start the TextTool while the mouse is over a shape can be achieved using custom code. I have created a sample project to demonstrate one way of achieving this. In a few words, I have subscribed to the PreviewMouseDown event of the RadDiagramShape and handle the event. Then the same mouse down event is raised on the RadIDagram itself which triggers the TextTool creation logic. As a note, I am setting the IsEnabled property of this shape to false and enabled it again in PreviewMouseUp events. Check the attached project.

Hope this solution will work on your side.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Diagram
Asked by
Tatiana
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or