SelectedValue Problem

7 posts, 0 answers
  1. possible
    possible avatar
    77 posts
    Member since:
    Oct 2006

    Posted 03 Jan 2008 Link to this post

    Hi..

    I have a problem with below code:

                cbU.DataSource = UsersManager.Controller.GetUsers(Common.PortalId());
                cbU.DataValueField = "UserID";
                cbU.DataTextField = "DisplayName";
                cbU.DataBind();

                cbU.Items.Add(new Telerik.Web.UI.RadComboBoxItem("-", String.Empty));
                cbU.SelectedValue = String.Empty;

    After running it in ComboBox still selected is first element not the one with empty value. I have tried the latest hotfix but this doesnt help.
  2. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 03 Jan 2008 Link to this post

    Hello tspossible,

    I suggest you use " " instead of String.Empty, like:

    RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("-", " "));
    RadComboBox1.SelectedValue = " ";

    Hope this helps.


    Kind regards,
    Nick
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. possible
    possible avatar
    77 posts
    Member since:
    Oct 2006

    Posted 03 Jan 2008 Link to this post

    Hi

    Thanks, now it works. But can I believe that this is a temporary solution and will be fixed in next release?
  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 03 Jan 2008 Link to this post

    Hi ,

    This should work with the latest hotfix which I have attached to this message. Please download it and give it a try.

    Hope this helps.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Mike
    Mike avatar
    6 posts
    Member since:
    Nov 2006

    Posted 04 Jan 2008 Link to this post

    I was having the same issue as stated above and it was fixed with this hotfix.  However, now I'm periodically getting a purchase warning on some controls like this isn't hotfix for the paid version.

    When can we expect a hotfix for the paid version?
  7. Nyceane
    Nyceane avatar
    47 posts
    Member since:
    Nov 2007

    Posted 04 Jan 2008 Link to this post

    i am having same problem, selected value just won't work no matter how i set up the key value, i need to build this thing fast, right now I am storing it in the txt field...
  8. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 07 Jan 2008 Link to this post

    Hi ,

    You can obtain a dev hotfix if you open a support ticket and request it. The next official version of Prometheus suite will be released by the end of the month.

    All the best,
    Rosi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017