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

Problem with EmptyText in the RadComboBox when setting .Text property in code

4 Answers 76 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
NR
Top achievements
Rank 1
NR asked on 07 Sep 2010, 10:49 PM
I have a RadComboBox which is defined as follows:
<telerik:RadComboBox  Name="rcbURLList" IsEditable="True" EmptyText="http://" StaysOpenOnEdit="True" IsTextSearchEnabled="False" KeyUp="rcbURLList_KeyUp" SelectionChanged="rcbURLList_SelectionChanged">

This RadComboBox is dynamically populated through some code I have running off a WCF Service.. (although that is probably not important).

My problem seems to be that when I set rcbURLList.Text in the code, I see an overlapping of the http:// and my actual text. I have a Menu which when an option is clicked it simply does rcbURLList.Text = item.Header.ToString();

I know the text is getting set, because I can see it. The "EmptyText" however is not disappearing as I would expect it to do in this case.

I even tried doing some funky stuff with it by doing:
rcbURLList.EmptyText = string.Empty;
rcbURLList.Text = item.Header.ToString();
rcbURLList.EmptyText = "http://";

and still it doesn't do what I would expect which is that the "http://" is no longer in the background.

Help?

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 08 Sep 2010, 11:46 AM
Hello,

I suppose you are using older version of RadComboBox for Silverlight. The problem you have is known and has been fixed. Please, try with the latest internal build and if the problem persists, open a new support ticket and send us a simple application that can be used to observe it. We will provide a solution immediately.

Regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
NR
Top achievements
Rank 1
answered on 08 Sep 2010, 04:07 PM
I wouldn't say my build of RadControls for Silverlight is old. I'm using version 2010.2.812.1040 which is the latest released version. I try not to use "Internal Builds" as those are not necessarily "stable" and these components are going into a production environment where I need the controls to be stable.

I will try the new version for the RadComboBox just so I can get rid of this annoying bug. Thank you for your assistance.
0
NR
Top achievements
Rank 1
answered on 08 Sep 2010, 04:53 PM
I tried again with the "Latest Internal Build" which is 2010.2.903.1040. Still did not fix the problem as can be seen with my sample application.

I will submit a ticket with the attached code and hopefully that will allow you to reproduce the problem and get a solution in place for the next official release.

Thanks!
0
Valeri Hristov
Telerik team
answered on 08 Sep 2010, 04:55 PM
Hi NR,

I also managed to reproduce the problem, we will provide a fix in this Friday's internal build. I apologize for the inconvenience. No need for code snippet or application.

Kind regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
NR
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
NR
Top achievements
Rank 1
Share this question
or