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

[Solved] Decimal Numeric Textbox incrementing arrow issue

2 Answers 99 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Temesgen Meheret
Top achievements
Rank 1
Temesgen Meheret asked on 04 Oct 2010, 09:45 PM
Arrows on numeric textbox field do strange increments when you hold down.
For my case it goes with 10,000 increments until 300,000 and then it starts doing random increments.


<%Html.Telerik().CurrencyTextBox()
        .Name(ViewData.TemplateInfo.HtmlFieldPrefix)
        .MinValue(0)
        .DecimalDigits(0)
        .MaxValue(Decimal.MaxValue)
        .IncrementStep(10000)
        .DecimalDigits(0)
        .Value(Model).Render();

%>

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 05 Oct 2010, 09:54 AM
Hello Temesgen,

This behavior is by design. Once the user hold arrow clicked, we increase the defined step. In order to overcome this issue you need to override stepper method in the textbox.js file with this:
[Original]:
stepper: function (e, stepMod) {
    if (e.which == 1) {
        var input = $('.t-input:first', this.element);
        var step = this.step;
 
        this.modifyInput(input, stepMod * step);
    }
}

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Temesgen Meheret
Top achievements
Rank 1
answered on 05 Oct 2010, 04:45 PM
Thanks.
Tags
NumericTextBox
Asked by
Temesgen Meheret
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Temesgen Meheret
Top achievements
Rank 1
Share this question
or