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

radTextBox not update from js

1 Answer 88 Views
Input
This is a migrated thread and some comments may be shown as answers.
roy z
Top achievements
Rank 1
roy z asked on 20 Oct 2009, 02:07 PM
hello.

I'm using three radTextBox and want to update one of them using javascript.
I'm using the "clinet - onblur" and after updating textbox 1 and text box 2 with numbers - when I leave one of them it should update textbox 3.

the problem is like this: I enter numver to textbox 1 and go to textbox2.
now I enter number to textbox2 and go to textbox 3 and its seems OK.
but if I'm leaving textbox1 or 2 and not focus with my mouse on textbox3 - it doesn't update.
its look like only when I'm focusing on it with the mouse or TAB the value is updated.

Do u know this problem?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Oct 2009, 07:43 AM
Hello roy z,

Most probably, the problem is that you are updating the textbox3 value with standard Javascript properties and methods, for example:

document.getElementById(...).value = ....;

This is not correct with RadTextBox. Please use $find() and the control's API - get_value(), set_value()

 http://www.telerik.com/help/aspnet-ajax/input_clientsidebasics.html

http://www.telerik.com/help/aspnet-ajax/input_clientsideradtextbox.html


Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Input
Asked by
roy z
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or