Hey everyone,
I'm currently working through some existing project, and would like to set up a RadComboBox that will complain if it doesn't have a current selection, or the current selection is an empty string. The current ComboBox is the stock WPF control, and populates itself like this:
const
string
sql = @"
SELECT Item AS ListItem
FROM...";
DataTable table = GetTable(...)
cbx.ItemsSource = table.DefaultView;
cbx.DisplayMemberPath =
"Item"
;
cbx.SelectedValuePath =
"Item"
;
I'm new to MVVM and WPF, and this doesn't seem standard. So, what I want to know is if there's a nice way to have the RadComboBox control complain about an invalid SelectedItem? Do I need to rip this apart and do data binding? If so, is there an example I can look at to get an idea?
As always, thanks for the help,
Lee