Height of RadDropDownList when using AutoComplete

2 posts, 0 answers
  1. Brian
    Brian avatar
    14 posts
    Member since:
    Oct 2010

    Posted 08 Apr 2013 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 10 Apr 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top