Raising Exception SelectedItem bound property

2 posts, 0 answers
  1. Manas
    Manas avatar
    4 posts
    Member since:
    Apr 2010

    Posted 05 Oct 2010 Link to this post

    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).

  2. George
    George avatar
    1332 posts

    Posted 08 Oct 2010 Link to this post

    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

    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
Back to Top