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

Separate Styles for Validation Errors and Warnings

2 Answers 108 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jason
Top achievements
Rank 1
Jason asked on 09 Aug 2012, 06:54 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 14 Aug 2012, 01:54 PM
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.

0
Jason
Top achievements
Rank 1
answered on 14 Aug 2012, 07:15 PM
Great!  That made things much easier.  Thanks a lot!

-Jason
Tags
ComboBox
Asked by
Jason
Top achievements
Rank 1
Answers by
Yana
Telerik team
Jason
Top achievements
Rank 1
Share this question
or