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

RadDropDownList Designer item Selected dosent work

1 Answer 41 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Alejandro
Top achievements
Rank 1
Alejandro asked on 14 May 2016, 09:01 PM

Hi.

Im not sure about if anyone was already reported it, but, when i add some items to RadDropDownList and when i set "Selected" Property to one of them and i accept the changes the "Selected" property is deleted. I'm using Telerik UI For WinForms Q1 2016 SP1.

I solved this issue establishing directly the property in the designer file just like this:

 

//
// radDropDownList2
//
this.radDropDownList2.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
radListDataItem1.Text = "--Seleccione--";
radListDataItem1.Selected = true;
radListDataItem2.Text = "Masculino";
radListDataItem3.Text = "Femenino";
this.radDropDownList2.Items.Add(radListDataItem1);
this.radDropDownList2.Items.Add(radListDataItem2);
this.radDropDownList2.Items.Add(radListDataItem3);
this.radDropDownList2.Location = new System.Drawing.Point(115, 356);
this.radDropDownList2.Name = "radDropDownList2";
this.radDropDownList2.Size = new System.Drawing.Size(125, 20);
this.radDropDownList2.TabIndex = 29;

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 17 May 2016, 07:43 AM
Hello Alex,

Thank you for writing.

I was able to reproduce the observed issue. I have logged it in our Feedback Portal. You can track the item for status changes and add your vote for it here.

Until this is resolved you can set the SelctedItem at runtime.

Your Telerik Points have been updated for this report.

Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
DropDownList
Asked by
Alejandro
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or