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

Height of RadDropDownList when using AutoComplete

1 Answer 383 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 08 Apr 2013, 10:24 PM
This is using version 2013 Q1 and also 2013 Q1 SP1:

Dropping a new RadDropDownList on a form sets its size to 125, 20.

This is the auto generated code for the control in the designer code:

this.radDropDownList1.Location = new System.Drawing.Point(591, 28);
this.radDropDownList1.Name = "radDropDownList1";
this.radDropDownList1.Size = new System.Drawing.Size(125, 20);
this.radDropDownList1.TabIndex = 9;
this.radDropDownList1.Text = "radDropDownList1";

Setting the drop down's AutoCompleteMode to 'SuggestAppend' changes the size to 125, 22.

this.radDropDownList1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.radDropDownList1.Location = new System.Drawing.Point(591, 28);
this.radDropDownList1.Name = "radDropDownList1";
this.radDropDownList1.Size = new System.Drawing.Size(125, 22);
this.radDropDownList1.TabIndex = 9;
this.radDropDownList1.Text = "radDropDownList1";


The other controls on the form are all at a height of 20, specifically the RadTextbox that is right next to the drop down. This mismatched sizing looks poor.

How can I change the height of my dropdown back to 20. All my attempts at doing so are ignored and the height returns to 22, even when I try to change the size of the DropDownListElement and the RootElement.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 10 Apr 2013, 02:11 PM
Hi Brian,

Thank you for writing.

I can confirm this behavior and I have logged this issue in our Public Issue Tracking System. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link -
PITS Issue. Until the issue is resolved you can set the MaximumSize Height property of your DropDownLists to 20. For example:
this.radDropDownList1.MaximumSize = new System.Drawing.Size(125, 20);

I have also updated your Telerik points for bringing this issue to our attention. Do not hesitate to write back if you have further questions.

All the best,
Peter
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
DropDownList
Asked by
Brian
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or