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

Autocomplete RadCombobox CSLA binding Silverlight

3 Answers 92 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
JJ Loubser
Top achievements
Rank 1
JJ Loubser asked on 01 Aug 2011, 01:22 PM
Here is my Auto Complete RadCombobox with CSLA NameValueList<key,value> binding: <all is working well excepts it is not showing the value why? I try to play with SelectedValue and SelectedItem not working>

<telerik:RadComboBox
                                    telerik:StyleManager.Theme="{Binding ThemeManager.Theme, Source={StaticResource MyThemeStyleManager}}"
                                VerticalAlignment="Top" HorizontalAlignment="Left"
                                    MinWidth="200"
                                    Background="Transparent"  
                                     
                                    DisplayMemberPath="Value"
                                    ItemsSource="{Binding EmployeeList_Filter}"
                                    SelectedValuePath="{Binding Key, Mode=TwoWay}"
                                    Height="25"
                                    BorderBrush="Black"
                                    BorderThickness="1"
                                    DropDownClosed="RadComboBox_DropDownClosed"
                                        IsEditable="False"
                                        telerik:TextSearch.TextPath="Value"
                                        TextSearchMode="StartsWith"
                                        CanKeyboardNavigationSelectItems="True"
                                        IsMouseWheelEnabled="True"
                                        StaysOpenOnEdit="True"
                                        OpenDropDownOnFocus="True"
                                        VirtualizingStackPanel.VirtualizationMode="Recycling"
                                        
                                     
                                    />

3 Answers, 1 is accepted

Sort by
0
JJ Loubser
Top achievements
Rank 1
answered on 01 Aug 2011, 01:43 PM
what event is called when the item-source is finished with its loading?
0
JJ Loubser
Top achievements
Rank 1
answered on 01 Aug 2011, 01:48 PM
want to add someting like this ValueMemberPath="Key" then it will work.
0
JJ Loubser
Top achievements
Rank 1
answered on 11 Aug 2011, 02:36 PM
this done the trick
                                    ...
                                     ItemsSource="{Binding Model.EmployeeList_Filter}"
                                     SelectedValue="{Binding Model.EmployeeID, Mode=TwoWay}"
                                     SelectedValuePath="Key"
                                     DisplayMemberPath="Value"
                                     />
Tags
ComboBox
Asked by
JJ Loubser
Top achievements
Rank 1
Answers by
JJ Loubser
Top achievements
Rank 1
Share this question
or