radTextBox not update from js

2 posts, 0 answers
  1. roy z
    roy z avatar
    1 posts
    Member since:
    Oct 2009

    Posted 20 Oct 2009 Link to this post


    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?
  2. Dimo
    Dimo avatar
    8451 posts

    Posted 21 Oct 2009 Link to this post

    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()



    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.
Back to Top