Solved

telerik RadNumericTextBox

Posted on 2009-06-30
3
3,558 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
Comment Utility
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
Comment Utility
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
Comment Utility
so try

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

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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 …
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now