Binding source is updated despite value being lower than specified 'Minimum'

7 posts, 0 answers
  1. Stefan
    Stefan avatar
    25 posts
    Member since:
    Feb 2009

    Posted 09 Jan 2012 Link to this post

    In the current version (Q3 2011), when the user enters a value below the specified 'Minimum', the bound property is updated to this value.

    In Q2, the source was also updated first to the wrong value, but afterwards a second update occurred using the specified minimum value.

    The current behavior is just completely wrong, while the behavior in Q2 is also not really expected as I would expect of the control not to update the source to a value below the minimum in the first place, but directly to the minimum value.

    <Window x:Class="RadNumericUpDownProblem.MainWindow"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
        <telerik:RadNumericUpDown Minimum="0"
                                  Value="{Binding NumericUpDownValue}"/>
    </Window>

    namespace RadNumericUpDownProblem
    {
        public partial class MainWindow
        {
            private int mNumericUpDownValue;
     
            public MainWindow()
            {
                InitializeComponent();
     
                DataContext = this;
            }
     
            public int NumericUpDownValue
            {
                get { return mNumericUpDownValue; }
                set { mNumericUpDownValue = value; }
            }
        }
    }
  2. Beister Software GmbH
    Beister Software GmbH avatar
    7 posts
    Member since:
    Oct 2009

    Posted 09 Jan 2012 Link to this post

    Hi,

    we are facing the same problem, but in our case it is related to Maximum-property (user enters a value bigger than the maximum). A solution or a fix would be really nice.

    Greetings, Carsten
  3. UI for WPF is Visual Studio 2017 Ready
  4. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Jan 2012 Link to this post

    Hi all,

    We are aware of this issue and it is already fixed. Please download the latest available internal build and try with it.

    Regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  5. Beister Software GmbH
    Beister Software GmbH avatar
    7 posts
    Member since:
    Oct 2009

    Posted 11 Jan 2012 Link to this post

    Hi,

    the problem seems to be solved with the 1309 build. Thank you.

    Greetings, Carsten
  6. Pascal
    Pascal avatar
    15 posts
    Member since:
    Mar 2009

    Posted 11 Jan 2012 Link to this post

    With the current build (1309) it works as expected when you enter a number, but still not when you are at the minimum and use the down button.
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 13 Jan 2012 Link to this post

    Hi,

    We have logged this issue in PITS. You can view it here. You can track its status and see when it is going to  be fixed.
    Sorry for the caused inconvenience.

    Greetings,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  8. Stefan
    Stefan avatar
    25 posts
    Member since:
    Feb 2009

    Posted 13 Jan 2012 Link to this post

    Thanks
Back to Top
UI for WPF is Visual Studio 2017 Ready