Separate Styles for Validation Errors and Warnings

3 posts, 1 answers
  1. Jason
    Jason avatar
    2 posts
    Member since:
    Jul 2012

    Posted 09 Aug 2012 Link to this post

    I'm new with Telerik, and I'm a little stuck on validation.
    I'm trying to have the validation message for a RadComboBox pop up with two different styles: one for errors, and one for warnings.
    My approach thus far has been to try and access the styling properties programmatically through VB.net.
    Using VisualTreeHelper I was able to change the border color of the tooltip, but I can't figure out how to access the popup message.
    Is there a better way to go about this?

    Any help much appreciated!

    Jason
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 14 Aug 2012 Link to this post

    Hello Jason,

    I would suggest to use IDataErrorInfo interface to implement validation, the approach is demonstrated in the following example:
    http://demos.telerik.com/silverlight/#ComboBox/Validation

    Check the ValidateManufacturer() method - there are two different error messages returned according to the error.

    Hope this helps.

    All the best,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Jason
    Jason avatar
    2 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    Great!  That made things much easier.  Thanks a lot!

    -Jason
Back to Top