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

Value won't display in small widths

4 Answers 56 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Dongzhi
Top achievements
Rank 1
Dongzhi asked on 01 Oct 2014, 06:32 PM
When I change the width the numeric control below 170 the values are cut off. Is there any way to fix this?

4 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 02 Oct 2014, 01:24 PM
Hi Dongzhi,

Can you please share a screen shot demonstrating the exact issue as I test the scenario and didn't observe any issues. If you have really long values, that need more space you can try changing the FontSize for example in order to be able to fit more digits in that Width.

I'm looking forward to hearing from you.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Dongzhi
Top achievements
Rank 1
answered on 02 Oct 2014, 04:23 PM
XAML:

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

<telerik:RadNumericUpDown Width="125" Margin="10" HorizontalAlignment="Left"/>
<telerik:RadNumericUpDown Width="200" Margin="10" HorizontalAlignment="Left"/>
0
Kalin
Telerik team
answered on 03 Oct 2014, 10:41 AM
Hi Dongzhi,

I tested the provided code and the controls look as expected (check the attached image). I assume there is a Style affecting the TextBox inside of the control (setting its Margin property), so what I can suggest you would be try removing any global TextBox style and check the NumericUpDown appearance again.

Hope this helps.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Jason D
Top achievements
Rank 1
Veteran
answered on 01 Nov 2016, 08:42 PM
I had the same problem so thought I would chime in. The problem was indeed another style. I had created a style to ensure all TextBox's were the same width. The result of setting the updown to the same width apparently resulted in the textbox having the same with as the entire updown, arrows included, so no numbers were visible. I fixed this by assigning a key to the TextBox style so that the updown would not use the TextBox's style.
Tags
NumericUpDown
Asked by
Dongzhi
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Dongzhi
Top achievements
Rank 1
Jason D
Top achievements
Rank 1
Veteran
Share this question
or