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

Rounded corners rectangle shape

14 Answers 1935 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Charette
Top achievements
Rank 1
David Charette asked on 30 Mar 2010, 04:41 PM
Hi all, is there a way to draw rounded rectagles? In shape tool i have squares, round, cross, but i didnt find a way to round the corners.

Thank you

14 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 31 Mar 2010, 05:47 PM
Hi David Charette,

To create a rectangle Shape item with a rounded corners, you have to set the ShapeType property to Square and the Rounding property to integer greater then 0.

Check out the attached screenshoot of the Shape's property grid.

Best wishes,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Willy Powell
Top achievements
Rank 1
answered on 03 May 2010, 04:56 PM
Is there a way to make the corners of tables or textboxes rounded?
0
Peter
Telerik team
answered on 05 May 2010, 02:44 PM
Hi Willy Powell,

We don't have out of the box solution for setting the Table or TextBox items with rounded corners. Our suggestion is to use textboxes to achieve rounder corners- instead of using a shape item, you use 9 textboxes or 5 at best. I've attached a screenshot of how it should look like and you should prepare the background images to respect the sizes of those items used as "borders".

Kind regards,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
MM
Top achievements
Rank 1
answered on 12 May 2011, 07:16 AM
Is there a way to make a rectangle, not just a square with rounded corners? When I stretch the rectangle, the rounded corners are stretched as well.
0
Colleen
Top achievements
Rank 1
answered on 03 Sep 2019, 02:13 AM

Two questions to this old post... I am using the solution posted above of creating 9 text boxes to achieve the look we want which is data on a white panel with rounded corners on a gray background.  The graphic designer created a Top Left Corner for me, which I had to shrink down considerably (.1"x.1") so as not to take up too much space... therefore my top 3 boxes and bottom 3 boxes will only be .1" in height.

1) is there a way for me to rotate this corner image I have so that I can use it on the other 3 corners?  I tried a few things, but couldn't get the back ground image (aka my corner graphic) to rotate.

2) Although, the report looks great in preview, when I export the report to PDF, the corner image now looks like it has a number of imperfections or flack.  How can I correct this? (please see attached 2 images)

Thank you,
Colleen

0
Neli
Telerik team
answered on 05 Sep 2019, 12:46 PM

Hello Colleen,

You can add a new feature request in our Feedback portal for the required functionality mentioned on your first question. Currently, we do not support it out-of-the-box. About the issue with the exported PDF file, we will need a runnable report demonstrating the problem, so we can investigate it on our end and check what causes the unexpected behavior.

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Colleen
Top achievements
Rank 1
answered on 05 Sep 2019, 01:34 PM

I tried to attach a very basic report you can run and export to see the issue I'm facing, but your forum will not let me attach it as it is not an allowable file type.  is there another way I can send my .trdp file?

"The selected file(s) cannot be attached because it may exceed the maximum attachment size (2 MB) or is from not allowed type (allowed: .gif, .jpg, .jpeg, .png)."

-Colleen

0
Neli
Telerik team
answered on 10 Sep 2019, 07:44 AM

Hi Colleen,

You can upload it to cloud storage (for example Dropbox) and then send us the link to the file. Note that the report should contain (sample) data - it has to be runnable. 

 

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Colleen
Top achievements
Rank 1
answered on 19 Sep 2019, 09:38 PM

I just logged in to see if there has been an update, and my reply from 9 days ago did not post.  Here is what I meant to reply:

Thank you Neli,
here is a link to the document.  https://www.dropbox.com/s/n6136886tdo8ued/Template.trdp?dl=0
-Colleen

I just tried and you can still access the file.

Thanks again

-Colleen

0
Neli
Telerik team
answered on 23 Sep 2019, 01:52 PM

Hi Colleen,

I inspected the report and the pictures used for the corners. It seems that the images' quality is low. I also noticed some dark stains on the corners. I suggest trying with images with higher quality. You may consider also using vector instead of bitmap images.

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Colleen
Top achievements
Rank 1
answered on 23 Sep 2019, 07:44 PM

I will pass along your suggestion regarding using a vector image vs the png file I was provided.

I wanted to get clarifications from you regarding the "dark stains".... are you saying you see dark stains in the Telerik preview?

Thanks again

-Colleen

0
Colleen
Top achievements
Rank 1
answered on 24 Sep 2019, 02:03 PM
My graphic designer was unaware that vector images could be used.  Is this true of Version 11.2.17.913?
0
Colleen
Top achievements
Rank 1
answered on 24 Sep 2019, 02:13 PM
just tried to apply a vector image and failed miserably
0
Neli
Telerik team
answered on 26 Sep 2019, 01:41 PM

Hi Colleen,

I am sorry for misleading you in my last reply. The PictureBox value indeed cannot be a vector image. What I meant with vector images was using Shapes due to the fact that you can set the Rounding property for the Square shape.

I discussed the issue with our development team. The behavior is resulted by the incorrect processing of the transparent parts of the image by the PDF rendering. 

To avoid this outcome in PDF rendering, I suggest modifying the corners' images. Remove their transparency and put as background color the background of the GroupHeader section. Then in the report, set only the Value of the picture box, without setting the Background Image property.

You may check the updated version of the top left image and the report in the attached archive.

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
David Charette
Top achievements
Rank 1
Answers by
Steve
Telerik team
Willy Powell
Top achievements
Rank 1
Peter
Telerik team
MM
Top achievements
Rank 1
Colleen
Top achievements
Rank 1
Neli
Telerik team
Share this question
or