Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > NumericUpDown > Using NumericUpDown for selecting a specific sequence of values - and IsReadOnly

Not answered Using NumericUpDown for selecting a specific sequence of values - and IsReadOnly

Feed from this thread
  • Inger Marie avatar

    Posted on Feb 3, 2011 (permalink)

    I have an integer type property, which may only have specific values in a infinite sequence: 4, 6, 8, 12, 16.... (the sequence can be made finite because big values will never be used in this reality).

    Q1: I would like the mouse wheel and the buttons to select the next valid value for the user. I saw this post (http://www.telerik.com/community/forums/wpf/numeric-up-down/use-numericupdown-as-multiplier.aspx) in the forum and figured that my problem cannot be solved either. Is this feature planned for any release?

    Q2: The numericupdown should be readonly under certain circumstances (most other input-fields are textboxes and they are made readonly, not disabled). Is there some setting to remove the possibility of user input from numericupdown besides enabled=false?

    Thanks,
    Inger Marie

    Reply

  • Boyan Boyan admin's avatar

    Posted on Feb 8, 2011 (permalink)

    Hi Inger Marie,

    Such functionality is not currently available for RadNumericUpDown. However if the values are constantly increasing you can use SmallChange property and set it to something bigger than 1. For example if you have 4,8,12,16  set SmallChange=4 and you are set.

    Now to your second question. You can set IsEditable= false  and that will make the TextBox of the control read only.

    Hope this helps. If you have further questions please let me know.

    Greetings,
    Boyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>

    Reply

  • Inger Marie avatar

    Posted on Feb 9, 2011 (permalink)

    Thanks,

    IsEditable == false is not what I seek, it will not disable the button making it possible to change the value still. I am aware that I might be able to to this by creating a custom template, I was just wondering if there already was such a functionality available.

    Reply

  • Boyan Boyan admin's avatar

    Posted on Feb 11, 2011 (permalink)

    Hello Inger Marie,

    This is the current implementation of IsEditable= false. It just makes the Textbox read only. There is no way to achieve the desired behavior without changing the control template.

    I am sorry for the caused inconvenience. Let us know if you have further questions.

    All the best,
    Boyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>

    Reply

  • Inger Marie avatar

    Posted on Feb 17, 2011 (permalink)

    Thanks.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > NumericUpDown > Using NumericUpDown for selecting a specific sequence of values - and IsReadOnly
Related resources for "Using NumericUpDown for selecting a specific sequence of values - and IsReadOnly"

WPF NumericUpDown Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]