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

5 posts, 0 answers
  1. NR
    NR avatar
    17 posts
    Member since:
    Oct 2009

    Posted 07 Sep 2010 Link to this post

    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?
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 08 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. NR
    NR avatar
    17 posts
    Member since:
    Oct 2009

    Posted 08 Sep 2010 Link to this post

    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.
  5. NR
    NR avatar
    17 posts
    Member since:
    Oct 2009

    Posted 08 Sep 2010 Link to this post

    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!
  6. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 08 Sep 2010 Link to this post

    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
Back to Top
DevCraft banner