Setting a textbox background color does not honor rounded corners setting

1 Answer 95 Views
TextBox
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Troy asked on 24 Aug 2022, 12:18 AM

I have my text boxes all set to use rounded corners via the style builder.  However when I set the background color of a textbox, the background fill does not respect the rounded corners.  Below is a blown up screenshot as an example.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 26 Aug 2022, 09:11 AM

Hi Troy,

Thank you for the provided image.

You can share how you have set the RounRectShape element to the RadTextBox. The general approach here is to set the radTextBox1.TextBoxElement.Shape property.

this.radTextBox1.TextBoxElement.Shape = new RoundRectShape(15);
radTextBox1.TextBoxElement.Fill.BackColor = Color.Red;
radTextBox1.TextBoxElement.TextBoxItem.BackColor = Color.Red;

If this does not work, you can share which properties are set to the RadTextBox control.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Troy
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 26 Aug 2022, 04:55 PM

Dinko,

I'm setting the shape property in the visual style builder and applying that style to the entire project.

Dinko | Tech Support Engineer
Telerik team
commented on 31 Aug 2022, 08:46 AM

You can try setting the mentioned above properties in the Visual Style Builder and check again the behavior in the image is still observable. If yes, you can share which theme are you modifying so that I can test it on my side. You can also send me the theme package file ( .tssp) to take a close look if needed.

Tags
TextBox
Asked by
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or