Solved

telerik RadNumericTextBox

Posted on 2009-06-30
3
3,603 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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…

776 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