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

How to programmatically set SELECTEDITEM

2 Answers 397 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 16 Nov 2009, 05:42 PM
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 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 16 Nov 2009, 06:17 PM
Make sure the length of the selected item matches the value in the list.
0
Ravi
Top achievements
Rank 1
answered on 27 Jul 2010, 02:36 PM
Hi,

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

Thanks,

Ravi
Tags
ComboBox
Asked by
Eric
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Ravi
Top achievements
Rank 1
Share this question
or