Value won't display in small widths

5 posts, 0 answers
  1. Dongzhi
    Dongzhi avatar
    25 posts
    Member since:
    Jan 2014

    Posted 01 Oct 2014 Link to this post

    When I change the width the numeric control below 170 the values are cut off. Is there any way to fix this?
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 02 Oct 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dongzhi
    Dongzhi avatar
    25 posts
    Member since:
    Jan 2014

    Posted 02 Oct 2014 in reply to Kalin Link to this post

    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"/>
  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 03 Oct 2014 Link to this post

    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.
     
  6. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 01 Nov in reply to Kalin Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready