Setting one maximum on multiple controls.

2 posts, 0 answers
  1. Szymon Wantuch
    Szymon Wantuch avatar
    10 posts
    Member since:
    Apr 2010

    Posted 03 Feb 2011 Link to this post


    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
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 04 Feb 2011 Link to this post

    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.

    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top