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

Setting one maximum on multiple controls.

1 Answer 40 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Szymon Wantuch
Top achievements
Rank 1
Szymon Wantuch asked on 03 Feb 2011, 10:35 AM
Hello

I'm trying to implement scenario, where I have multiple numerics, and they have a collective maximum. In other words, I want the sum of their values not to exceed some given value.

What is the best way to achieve this scenario?

Best Regards,
Szymon Wantuch

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 04 Feb 2011, 02:22 PM
Hello Szymon,

I can suggest you to bind the Maximum property of the NumericUpDown control to a property which will get the maximum you need. Or you could implement validation and display an error when the maximum exceeds the required value. You can find an example of validation in this online demo.

Hope this helps. Please let us know if you have any other questions about our controls.

Greetings,
Konstantina
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
NumericUpDown
Asked by
Szymon Wantuch
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or