I have used the silverlight combobox successfully to bind to an object that contains 3 properties - ID is the foreign key, Title is what should be displayed in the drop down, Description is what should be displayed in a tooltip (I'm not concerned about the tooltip in the combobox).
This is how I accomplished it with the silverlight combobox:
DisplayMemberPath="Title"
ItemsSource="{Binding Path=ProjectListProvider.LocationList}"
SelectedItem="{Binding Path=ProjectLocationName, Mode=TwoWay}">
The DataContext was set to an object that held a ProjectListProvider object and a ProjectLocationName object (that object is of a base type that had ID, Title, Description). Then I overrode the Equals/GetHashCode methods in the ProjectLocationName's base class. An example of this is in the blog posting: http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx.
Now I would like to switch to the RadComboBox, so all of my controls can be themed using the (very nice) StyleManager.ApplicationTheme = ThemeManager.FromName("Vista"). I need some guidance. I noticed that you have implemented SelectedValue and SelectedValuePath, and there is also the telerik:TextSearch.TextPath that is shown in one of your examples. I'm not sure which of these to use. I'm resorting to trial and error and I haven't hit on the correct solution.
If I leave the xaml given above, the popup item that is highlighted may not be displayed (you have to scroll to find it). Also, the ProjectLocationName object held in the DataContext object does not appear to be updating correctly.
Any help or suggestions would be great.
Jeanne
This is how I accomplished it with the silverlight combobox:
DisplayMemberPath="Title"
ItemsSource="{Binding Path=ProjectListProvider.LocationList}"
SelectedItem="{Binding Path=ProjectLocationName, Mode=TwoWay}">
The DataContext was set to an object that held a ProjectListProvider object and a ProjectLocationName object (that object is of a base type that had ID, Title, Description). Then I overrode the Equals/GetHashCode methods in the ProjectLocationName's base class. An example of this is in the blog posting: http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx.
Now I would like to switch to the RadComboBox, so all of my controls can be themed using the (very nice) StyleManager.ApplicationTheme = ThemeManager.FromName("Vista"). I need some guidance. I noticed that you have implemented SelectedValue and SelectedValuePath, and there is also the telerik:TextSearch.TextPath that is shown in one of your examples. I'm not sure which of these to use. I'm resorting to trial and error and I haven't hit on the correct solution.
If I leave the xaml given above, the popup item that is highlighted may not be displayed (you have to scroll to find it). Also, the ProjectLocationName object held in the DataContext object does not appear to be updating correctly.
Any help or suggestions would be great.
Jeanne