Declined
Last Updated: 10 Jan 2017 11:57 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 17 Aug 2016 09:57
Category:
Type: Bug Report
0
FIX. RadDropDownList - text is centered when resetting the selected index in RadDropDownStyle.DropDownList
To reproduce:

public Form1()
{
    InitializeComponent();

    this.radDropDownList1.DropDownStyle = RadDropDownStyle.DropDownList;
    this.radDropDownList1.Text = "Select Name";
    string[] names = { "Ketan", "Leena", "Amar" };

    radDropDownList1.Items.AddRange(names);
}

private void button1_Click(object sender, EventArgs e)
{
    radDropDownList1.SelectedIndex = -1;
    radDropDownList1.Text = "Select Name";
}

1. Select any name from the drop down.
2. Click the button. The 'Text' is center justified.

Workaround: use RadDropDownStyle.DropDown and NullText instead of setting the Text property.

this.radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown; 
this.radDropDownList1.NullText = "Select Name";
Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Ralitsa
Posted on: 10 Jan 2017 11:57
The item is duplicated with another issue in our feedback portal, so both are merged. More information about status of the issue can be found on the following page: https://feedback.telerik.com/Project/154/Feedback/Details/207598-fix-raddropdownlist-the-textalignment-is-reset-when-one-is-setting-the-text-of . 

The fix will be available with Telerik UI for WinForms R1 2017.