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

How we can apply Binding.ValidationRules in the telerik:RadNumericUpDown control ?

1 Answer 259 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 13 Apr 2011, 07:31 AM
Hi,
  <><>How we can apply Binding.ValidationRules in the telerik:RadNumericUpDown control  ?

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 18 Apr 2011, 09:44 AM

Hello,

Like any other WPF control. The validation depends on the framework for WPF so we don't do anything in our controls. Check the attached project. It defines a Binding that has ValidationRule attached. The rule is invalid if the RadNumericUpDown's Value is negative. The Binding also defines the NotifyOnValidationError="True" and ValidatesOnDataErrors="True" so that the red rectangle may appear.

Regards,

Pana
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
NumericUpDown
Asked by
Rahul
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or