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

[Solved] Possible to set MaxValue via JavaScript

3 Answers 144 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.
Skip Harris
Top achievements
Rank 1
Skip Harris asked on 22 Aug 2011, 08:52 PM
I have a case where I would like to set the max value of an IntegerTextBox client side from JavaScript.  Is this supported?

Thanks,
Skip

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 25 Aug 2011, 01:27 PM
Hello Skip,

 
You can set min/max value of the numerictextbox component using JavaScript like so:

$("#NumericTextBoxID").data("tTextBox").minValue = 10;
$("#NumericTextBoxID").data("tTextBox").maxValue = 100;

Regards,
Georgi Krustev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Skip Harris
Top achievements
Rank 1
answered on 25 Aug 2011, 08:23 PM
Georgi,

Thank you!  That was exactly what I was looking for and it works great.  I couldn't find this in your API reference.  It would be very helpful if this was added to your online documentation.

Thanks,
Skip
0
Georgi Krustev
Telerik team
answered on 26 Aug 2011, 08:49 AM
Hello Skip,

 
This is a known issue. This functionality will be documented for the next release of Telerik Extensions for ASP.NET MVC.

Regards,
Georgi Krustev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
NumericTextBox
Asked by
Skip Harris
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Skip Harris
Top achievements
Rank 1
Share this question
or