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

Raising Exception SelectedItem bound property

1 Answer 58 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Manas
Top achievements
Rank 1
Manas asked on 05 Oct 2010, 05:45 PM
Hello there,

We want to be able to show the red border with the error message tab in the corner to appear in Telerik ComboBox control when exception is raised in the SelectedItem bound property (similar to Microsoft Silverlight controls).

<telerikInput:RadComboBox x:Name="ccProduct" ItemsSource="{Binding ProductList}" SelectedItem="{Binding SelectedProduct, Mode=TwoWay, ValidatesOnExceptions=True,ValidatesOnDataErrors=True, NotifyOnValidationError=True}" DisplayMemberPath="ProductDesc" IsEditable="True" Grid.Row="1" Grid.Column="1" />

I have a screen that has multiple Telerik ComboBox controls which are required fields. The screen is using MVVM model. On the SelectedProduct property which is bound to SelectedItem property of the Product ComboBox the exception throw new ArgumentException("Product field is required"); is raised when the Save button is clicked and SelectedProduct is null. Similar exceptions are raised by other ComboBox control's SelectedItem bound property.

However it appears that since the exception is not handled by the Telerik Control unlike the default Microsoft controls the screen only displays one unhandled exception message and all the violating controls do not show the respective error messages with red border and balooned error message (similar to how Microsoft controls show the error message when eceptions are raised using a bound property).

Thanks,
Manas

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 08 Oct 2010, 03:21 PM
Hello Manas,

Could you please specify what version of our controls you use? I would suggest you to try our Q2 Service Pack 2 release and let me know if you still have any problem with RadComboBox

Greetings,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Manas
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or