CustomUnit property does nothing

4 posts, 0 answers
  1. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 16 Dec 2013 Link to this post

    Hello,
    create a new Silverlight application and replace MainPage.xaml with:
    <UserControl
      x:Class="SilverlightApplication1.MainPage"
      mc:Ignorable="d"
      d:DesignHeight="300" d:DesignWidth="400">
     
      <Grid x:Name="LayoutRoot"
            Background="White"
            HorizontalAlignment="Left"
            Margin="5"
            VerticalAlignment="Top">
        <tk:RadNumericUpDown CustomUnit="abc" />
      </Grid>
    </UserControl>

    Then run the application: the abc text is not displayed.

    Patrick
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 17 Dec 2013 Link to this post

    Hello Patrick,

    The NumericUpDown should lose the focus in order to add the CustomUnit to the value. Try to add a single TextBox below the NumericUpDown, type a value and click inside the text box - CustomUnit should appear. When click back into the input field of the NumericUpDown the CustomUnit will hide again while editing the value.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 17 Dec 2013 Link to this post

    Hello Kalin,
    it's a pity that we can't see the unit while editing.
    Patrick
  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 18 Dec 2013 Link to this post

    Hi Patrick,

    The NumericUpDown is designed that way to hide the CustomUnit while typing and behavior cannot be overridden. If you have any other question, don't hesitate to contact us.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top