Fit shape size to text or fit text to shape size

5 posts, 0 answers
  1. Leo
    Leo avatar
    4 posts
    Member since:
    Aug 2011

    Posted 10 Jun 2015 Link to this post

    I have been trying to determine how to make either a diagram shape size fit the text or fit the text to the shape size.  Can someone please explain how this can be done? 
  2. Vessy
    Admin
    Vessy avatar
    1383 posts

    Posted 12 Jun 2015 Link to this post

    Hi Leo,

    I have just answered your other thread on the subject, for convenience I am pasting my answer here as well:

    RadDiagram does not provide a built-in functionality to automatically wrap the text of a shape, or to transfer it to multiple lines. The only possible way to achieve a similar fnctionality for the moment is to use the RadDiagram Visual template functionality and add several Tex objects to a shape, so each of them will be rendered as a separate row. A live example of such implementation is available in the RadDiagram Overview demo:  http://demos.telerik.com/aspnet-ajax/diagram/examples/overview/defaultcs.aspx

    Regards,
    Vessy
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Leo
    Leo avatar
    4 posts
    Member since:
    Aug 2011

    Posted 12 Jun 2015 in reply to Vessy Link to this post

    OK - I will give that a try.  Thank you for the response. 
  5. Leo
    Leo avatar
    4 posts
    Member since:
    Aug 2011

    Posted 12 Jun 2015 Link to this post

    I have a follow up question.  I've got the code working that is breaking up the text into multiple text boxes.  However, it looks like the demo code also changes the size of the shape if it detects the text is too long.  However, even though the container expands, the shape doesn't.  It this by design or am I doing something wrong?  I've attached an image as an example.
  6. Vessy
    Admin
    Vessy avatar
    1383 posts

    Posted 17 Jun 2015 Link to this post

    Hi Leo,

    I am afraid that the provided screenshot was not enough for me to reproduce and determine what is causing the problem. Can you send us the exact configuration needed to replicate such behavior?

    Looking forward to your reply,
    Vessy
    Telerik
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017