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

[Solved] How to disable the appending on paste

1 Answer 12 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.
Jon Warmington
Top achievements
Rank 1
Jon Warmington asked on 26 Apr 2011, 03:22 PM
Hello, 

Currently we have a problem where we have a numeric text box setup and if a user pastes in a value (ie: 20) and then decides he wants to change it and tries to paste in 30, it then appends the 30 and the result is 2030.  How can we disable this?  If a user pastes in 30 over top of the 20, it should put 30 not 2030!

@(Html.Telerik().NumericTextBox()
                .Name("purchaseOrderId")
                .MinValue(0)
                .Spinners(false)
                .HtmlAttributes(new { style = "padding:2px;" })
                .InputHtmlAttributes(new { style = "width:150px" })
                .EmptyMessage("")
                .NumberGroupSeparator("")
                .DecimalDigits(0)
            )


Thanks
jon 

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 27 Apr 2011, 03:47 PM
Hello Jon,

 Thank you for drawing our attention to this issue.

I am glad to inform is already fixed. For your convenience I have attached the modified JavaScript file to this message.

I have also update your Telerik points.

Kind 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
Tags
NumericTextBox
Asked by
Jon Warmington
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or