Skip to main content
Home Forums Silverlight Programming WCF RIA Services Filtering with a combobox.
1 replies. Latest Post by Mog Liang - MSFT on July 7, 2009.
(0)
jonilda
Member
0 points
1 Posts
07-03-2009 1:49 AM |
I need help to figure out how to filter the data based on a combobox, which holds a collection of countries, and an autocomplete textbox. The textbox works fine, but I cannot make the combobox to work. I am not sure what to use in this line: <riadata:ControlParameter PropertyName="SelectedItem.Content". Below you see the code I have now.
<
Mog Lian...
All-Star
15884 points
1,541 Posts
07-07-2009 5:53 AM |
Your BindingProperty is probably incorrect.
if you initialize your combobox like this
<ComboBox Name="cb1" SelectionChanged="ListBox_SelectionChanged"> <ComboBoxItem Content="W"/> <ComboBoxItem Content="R"/> </ComboBox>
then, set BindingProperty to SelectedItem.Content
or else, if initialize ComboBox by binding a collection to Combobox.ItemsSource, then set BindingProperty to SelectedItem.