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

Is there a way to add a spin Up/Down button in the RadMaskedNumericInput?

3 Answers 66 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Sintayehu
Top achievements
Rank 1
Sintayehu asked on 22 Aug 2013, 05:43 PM

Hello,

We would really like to use your RadMaskedNumericInput in form fields and inside a RadGridView for cell editing purposes.

Masking, formatting, spinning are all important features for us.

Spinning with up/down key press works beautifully but we would like to see if there is a way to add up/down spin buttons to make this feature more visible and friendlier to the user.

I know there is a RadNumericUpDown control that has this out of the box but it doesn't have the features that the Masked editor gives us.

Look forward to your suggestion.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Sintayehu
Top achievements
Rank 1
answered on 22 Aug 2013, 09:30 PM
After writing this I figured I re-template the control.

So I extended the RadMaskedNumericInput and added Two RepeatButtons in the RadMaskedInputBase Template much like the RadNumericUpDown does.

And from My custom control I handle the RepeatButtons Increase and decrease events by calling the base CallSpin(tru/false)
method.

That seems to work for now. But please let me know if there is a simpler way, like "Oh just set The ShowButton attribute to true".

It will be also helpful to know why you guys didn't add these buttons, in case there is a negative reason.

Thanks!

0
Accepted
Petar Mladenov
Telerik team
answered on 27 Aug 2013, 07:53 AM
Hi Sintayehu,

 I believe you have started a good approach for achieving this functionality. Usually these buttons are placed in controls (for example Numeric UpDown) where you have limited options (for example values 1-10) and operations like incrementing/decrementing with one are the most typical. On the other hand MaskNumericInput / CurrencyInput are typically used to store big double / decimal numbers and it is rare to set them a minimum / maximum values or set them a some period or set of valid numbers. The most typical scenario is editing the current value to some other value and then save, then input another value. Incrementing / Decrementing is more uncommon operation and that is why up/down buttons are not included in the default template by design.

Regards,
Petar Mladenov
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 >>
0
Sintayehu
Top achievements
Rank 1
answered on 04 Sep 2013, 03:40 PM
Thanks, I went ahead and created the spin buttons and it works as expected , I had to put focus back into the control on every repeat button click after calling CallSpin(tru/false).
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Sintayehu
Top achievements
Rank 1
Answers by
Sintayehu
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or