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

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

6 Answers 63 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 09 Jan 2012, 03:42 PM
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; }
        }
    }
}

6 Answers, 1 is accepted

Sort by
0
Beister Software GmbH
Top achievements
Rank 1
answered on 09 Jan 2012, 09:44 PM
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
0
Konstantina
Telerik team
answered on 11 Jan 2012, 02:30 PM
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 >>
0
Beister Software GmbH
Top achievements
Rank 1
answered on 11 Jan 2012, 04:08 PM
Hi,

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

Greetings, Carsten
0
Pascal
Top achievements
Rank 1
answered on 11 Jan 2012, 06:37 PM
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.
0
Konstantina
Telerik team
answered on 13 Jan 2012, 01:44 PM
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 >>
0
Stefan
Top achievements
Rank 1
answered on 13 Jan 2012, 02:37 PM
Thanks
Tags
NumericUpDown
Asked by
Stefan
Top achievements
Rank 1
Answers by
Beister Software GmbH
Top achievements
Rank 1
Konstantina
Telerik team
Pascal
Top achievements
Rank 1
Stefan
Top achievements
Rank 1
Share this question
or