I have a combobox like below and i need to have a required field validation on it.
<
telerik:RadComboBox
x:Name
=
"combobox"
SelectionChanged
=
"combobox_SelectionChanged"
IsTextSearchEnabled
=
"True"
Width
=
"120"
telerik:TextSearch.TextPath
=
"Kode"
Margin
=
"2,0,0,0"
IsEditable
=
"True"
IsReadOnly
=
"True"
SelectedItem
=
"{Binding Path=SelectedItem, Mode=TwoWay, UpdateSourceTrigger=Explicit, NotifyOnValidationError=true, ValidatesOnExceptions=true}"
TextSearchMode
=
"Contains"
CanAutocompleteSelectItems
=
"True"
>
<
ItemsControl.ItemTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"50"
/>
<
ColumnDefinition
Width
=
"300"
/>
<
ColumnDefinition
Width
=
"300"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"{Binding Kode}"
Grid.Column
=
"0"
/>
<
TextBlock
Text
=
"{Binding Nederlandse_omschrijving}"
Grid.Column
=
"1"
/>
<
TextBlock
Text
=
"{Binding Franse_omschrijving}"
Grid.Column
=
"2"
/>
</
Grid
>
</
DataTemplate
>
</
ItemsControl.ItemTemplate
>
DummyComboBox.ItemsSource = DummyCodeList.Load()
The load event returns a list of Objects (List<DummyObject>)
I can't quite get the validation working.
Any suggestions ?