Posted on Feb 1, 2011 (permalink)
set_value()like below.
telerik:RadNumericTextBox
ID
=
"RadNumericTextBox1"
runat
"server"
>
<
ClientEvents
OnLoad
"SetValue"
/>
</
function
SetValue(sender, args)
{
var
input1 = $find(
'<%= RadNumericTextBox1.ClientID %>'
);
input1.set_value(8);
}
Posted on Feb 2, 2011 (permalink)
sender
SetValue(sender, args) //setting value in onLoad
input1 = sender;
Posted on Feb 3, 2011 (permalink)
/>. but get null value for $find('<%= RadNumericTextBox1.ClientID %>'); - kalpesh
Posted on Feb 9, 2011 (permalink)
Please find attached a sample application which shows the correct working for the required functionality. Test it on your side and let me know what the difference in your case is. Also please ensure that you are pointing the correct input ID in the java script function. Regards,
Posted on Feb 10, 2011 (permalink)
Hi Support team,
Actually I have to set value of textbox on onblur of other control, not on load of Textbox.
If I am write $find('<%= RadNumericTextBox1.ClientID %>') it return null value.
$find(
) it return null value.
If write like document.getElementById('<%= RadNumericTextBox1.ClientID %>') it return object but that not support method set_value(8) and return error “Microsoft JScript runtime error: Object doesn't support this property or method”.
If write like
Posted on Feb 11, 2011 (permalink)
OnBlur
"RadNumericTextBox2"
"OnLoad"
<script type=
"text/javascript"
textBox;
OnLoad(sender, args) {
textBox = sender;
SetValue(sender, args) {
input1 = textBox;
</script>
Back to Top
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below