How to programmatically set SELECTEDITEM

3 posts, 0 answers
  1. Eric
    Eric avatar
    6 posts
    Member since:
    Jul 2008

    Posted 16 Nov 2009 Link to this post

    Hi..
    I'm trying to set  the SELECTEDITEM and/or the SELECTED VALUE of combobox in code

    this.cmb.SelectedItem = Customers.Name;

    But it doesn't work  any ideas?  It's always null

    <radcombox  x:name="cmb"  SelectedValuepath="Name"
    SelectedItem = "{Binding Name, Mode=TwoWay}"

    thanks

  2. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 16 Nov 2009 Link to this post

    Make sure the length of the selected item matches the value in the list.
  3. Ravi
    Ravi avatar
    2 posts
    Member since:
    Jul 2010

    Posted 27 Jul 2010 Link to this post

    Hi,

    I have also tried this code but it is not working.
    So,
    Please give any suggession ASAP.

    Thanks,

    Ravi
Back to Top