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

DropDownList Shape RoundRect c#

2 Answers 111 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Davide
Top achievements
Rank 1
Davide asked on 11 May 2012, 05:20 PM

Hi there,

I am writing to you to understand if you could help me as to the following.

 

Currently I am developing an application and I am exploiting RAD WinControls in C#.

In one form I have a few text boxes with the TextBoxElement.Shape set to RoundRect.

 

I would need to do the same in a couple of dropdown lists and in one datetime picker.

Therefore I am trying to set the related properties in the same way:

e.g. ddlDropDown.DropDownListElement.Shape = new Telerik.WinControls.RoundRectShape();

 

Yet in this case the displayed items show some white angles (see attachment)

 

Would you please help me to understand how to fix that, i.e. how to delete or hide the white angles?

 

Thanks in advance for your kind collaboration

Best regards

 

Davide

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 15 May 2012, 12:27 PM
Hi Davide,

Thank you for writing.

You should set RootElement's ApplyShapeToControl property to true,
this.RootElement.ApplyShapeToControl = true;

and apply RoundRect shape to the ArrowButton's TopRight corner and ArrowButton's BottomRight corner:
radDropDownList.RootElement.Shape = new RoundRectShape();
radDropDownList.DropDownListElement.Shape = new RoundRectShape();
radDropDownList.RootElement.ApplyShapeToControl = true;
radDropDownList.DropDownListElement.ArrowButton.Shape = new RoundRectShape(4, false, false, true, true);

Please, refer to the attached project.

I hope this helps.

Regards,
Peter
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Davide
Top achievements
Rank 1
answered on 18 May 2012, 08:32 AM
It works fine.

Thank you for your help.
Tags
DropDownList
Asked by
Davide
Top achievements
Rank 1
Answers by
Peter
Telerik team
Davide
Top achievements
Rank 1
Share this question
or