Shared Shape Objects in Designer

2 posts, 0 answers
  1. Ben
    Ben avatar
    3 posts
    Member since:
    Jul 2013

    Posted 16 May 2014 Link to this post

    I have two controls, an radPanel and a radLabel which is contained within the panel. 
    I had hoped to set them both to use a rounded rectangle, but I wanted them to have different radius and rounded corners. 

    I've been using the "Edit UI Elements" link to bring up the Element hierarchy editor to set the shape. 
    I set both the panel and label to use a RoundRectShape, and then setup the radius and which corners I want to use. 

    I found that no matter if I edited the panel, or the label, both of them would always take on the same shape. Looking at the designer code, it looks like the element hierarchy editor is only generating one RoundRectShape object and sharing it between whatever controls I set to use a RoundRectShape shape. I would of expected it to make a different RoundRectShape object per control. I tried providing the editor a different name for the RoundRectShape object, but it just renames any existing one. 

    Not sure if this is intended or not.

  2. Stefan
    Stefan avatar
    2911 posts

    Posted 19 May 2014 Link to this post

    Hi Ben,

    Thank you for writing.

    I have tested the described case and I can confirm that it is an issue with our designer. The issue is logged here: Feel free to add your vote/comment to it.

    I have updated your Telerik Points for this report.

    Meanwhile, you can create the desired RoundRectShapes and apply them at runtime.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top