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

Validation Combobox

2 Answers 343 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nicky
Top achievements
Rank 1
Nicky asked on 17 Mar 2011, 10:49 AM
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 ?

2 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 22 Mar 2011, 05:35 PM
Hi Nicky,

 
Please, refer to the following forum thread - http://www.telerik.com/community/forums/wpf/combobox/radcombobox-validation.aspx

I hope this helps.

Kind regards,
George
the Telerik team
0
VEJitendra
Top achievements
Rank 1
answered on 28 Dec 2016, 01:28 PM

Hi ,

I have a telerik combo-box control . And i want to have validation-on that control . 

And Validation should be for below condition.

1:  Whenever  a user enter a new value in combobox it check that same value exist or not.

2: If user enter special character in combobobx.

 

So please help me to validate the combobox control in above condition.

Tags
ComboBox
Asked by
Nicky
Top achievements
Rank 1
Answers by
George
Telerik team
VEJitendra
Top achievements
Rank 1
Share this question
or