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

Dimension lines

3 Answers 156 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Maurício
Top achievements
Rank 1
Maurício asked on 21 Jan 2015, 05:49 PM
Hello

I would like to know if it's possible to build a custom tool to create dimension lines, like the one i've draw in the attached image.

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 26 Jan 2015, 02:55 PM
Hello MaurĂ­cio,

The diagram does not provide such functionality out of the box. However, you should be able to implement it with custom code by modifying the template of the shapes.

For your convenience I attached a sample project demonstrating such approach. You can use it as a starting point for your implementation. Please give the solution a try and let me know if it helps.

Regards,
Martin
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
Maurício
Top achievements
Rank 1
answered on 26 Jan 2015, 04:17 PM
Hello Martin,

Thank you for the answer.

Actually what I need is a little bit more complex, I need to be able to select two points to add the dimension line, I also need to be able to customize and drag it.
I am thinking of using connectors and connections attached to a thin shape. 
Check the attached GIF to see what I've done so far.

I created a new tool where I grab the first and second clicked connectors, then I create a shape and add the connections between them.
Do you know a better approach?
0
Accepted
Martin Ivanov
Telerik team
answered on 27 Jan 2015, 09:15 AM
Hello MaurĂ­cio,

As the diagram control is very extensible, there should be at least few approaches that you can use to achieve your requirement. However, the described approach seems quite good for achieving your requirement. If you need further assistance, please let us know.

Regards,
Martin
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
Maurício
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Maurício
Top achievements
Rank 1
Share this question
or