Solved

telerik RadNumericTextBox

Posted on 2009-06-30
3
3,619 Views
Last Modified: 2012-05-07
I have this control
                <telerik:RadNumericTextBox ID="rntRecursEvery1" runat="server"
                    ButtonsPosition="Right"  Value="0" ShowSpinButtons ="true" Height="18px"
                    Width="60px" Type="Number" MaxLength="2" MaxValue="31" MinValue="1">
                        <NumberFormat AllowRounding="False"></NumberFormat>
                </telerik:RadNumericTextBox>
I need set two properties (MaxValue and  MinValue) value in javascript
my code is
var rntOccursEveryClie = document.getElementById('<%=this.rntOccursEvery.ClientID%>').value
but tis portion
document.getElementById('<%=this.rntOccursEvery.ClientID%>').MaxValue = 24;
it is not working

Open in new window

0
Comment
Question by:nolberta
  • 3
3 Comments
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 500 total points
ID: 24753364
That is likely because the HTML/Javascript generated for this control does not have these values exposed (under those names)

I'll have a look to see how to access them if at all possible
0
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 500 total points
ID: 24753515
http://www.telerik.com/help/aspnet-ajax/input_clientsideradnumerictextbox.html

Name                  Parameters              Return Type                           Description

get_maxValue              none              number              Returns the maximum value the user can enter.                                
set_maxValue              number              none              Sets the maximum value the user can enter.
get_minValue              none              number              Returns the minimum value the user can enter.
set_minValue              number              none              Sets the minimum value the user can enter.
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 24753587
so try

document.getElementById('<%=this.rntOccursEvery.ClientID%>').set_maxValue(24) ;

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question