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
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) {
varinput = $('.t-input:first', this.element);
varstep = 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