I have the following XAML defining a column with a RadNumericUpDown in the CellEditTemplate
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding IntegerProperty}"
Header
=
"IntegerProperty"
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
telerik:RadNumericUpDown
ValueFormat
=
"Numeric"
Value
=
"{Binding IntegerProperty, Mode=TwoWay}"
Minimum
=
"1"
Maximum
=
"2"
ShowButtons
=
"False"
NumberDecimalDigits
=
"0"
>
</
telerik:RadNumericUpDown
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>
Based on the above XAML, I expect the editor to restrict values to either a 1 or a 2 (these values are just an example). The behaviour I'm experiencing is that when I capture a value outside the min max bounds. The editor does not allow it, but the value displayed by the Grid is the out of bounds value. When I click back on the cell to go to the editor the value is constrained to the bounds. So I'm not sure what the real value is?
Any ideas?
14 Answers, 1 is accepted
What do you mean by : "when I capture a value outside the min max bounds" ?
All the best,
Pavel Pavlov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
If you capture a value of '5' and tab away the grid displays '5'. However, if you click on the cell to active the CellEditor you see the value '2' as expected (due to the maxvalue).
I would expect the column display value to be '2' as well since the radnumericupdown should have clamped the captured value to the maxvalue.
It seems that you've hit a bug in our control. The bug was fixed immediately and will be available with the next internal build.
Sorry for the inconvenience caused.
P.S. I've updated your Telerik points accordingly.
Nedyalko Nikolov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
In my case, my tester is entering -1 where my range is min 1 and max 500. Since, two binding is enabled, its getting saved into db, but, value got changed to minium.
The state of this bug is done, which means that with the latest version (internal build) everything should work properly.
Please let me know if you are facing same issue with the latest version.
Thank you in advance.
Nedyalko Nikolov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Which version of RadControls do you use? Here you can observe the result with the latest internal build (2011.3.1323.40).
All the best,Nedyalko Nikolov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I tested your scenario with version 2011.3.1323.40 and everything worked as expected. Please, take a look at the video I captured. Am I missing something?
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I am using the Q1 2012 release and I am facing a similar problem.
I use a RadNumericUpDown, which binds the value to DB-property and sets a Minimum="0". A problem arise, when I click on the down button, when the value is already 0. The displayed value stays at 0, but the value stored in the database gets -1.
<telerik:RadNumericUpDown Value="{Binding UnipQuantity, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="0" />
This behaviour can be found troughout the complete application.
Unfortunately, we are not able to reproduce the issue. May I ask you to open a support ticket and to send a simple runnable project demonstrating the problem? We will debug it on our side in order to see what is going wrong.
Looking forward to hearing from you.
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Hi
I using this Telerik RadNumericUpDown in CellEditTemplate, while editing only 5 digits are visible at most. If I enter 6th digit it is truncating the 1st digit of my number. I mean value is not completely visible while I'm editing.
Can you please check this ASAP.
Thanks.
The issue you are experiencing is most probably related to the width sizing of the column that is being edited. Please, make sure it is set to auto in order to achieve the desired behavior. As I am not absolutely aware of your setup and if this does not help, please raise a ticket with a sample project or some code provided and we will be glad to check the issue for you.
Regards,
Stefan Nenchev
Telerik