onkeyup event

2 posts, 0 answers
  1. Michael Constantine
    Michael Constantine avatar
    18 posts
    Member since:
    Jan 2006

    Posted 18 Aug 2009 Link to this post

    I am having a problem with the onkeyup event when using a RadTextBox.  Its seems to fire ok, however the changes to the text field are not reflected before the event fires.  So when it fires, any text entered that causes the event is not being seen in my javascrip fuction.  Has anyone seen this before?  If so, how do i rectify it?

    Thanks in advance.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Aug 2009 Link to this post

    Hello Michael,

    I tried the scenario by using get_textBoxValue() method for getting the RadTextBox value and found its working fine. Give a try with this.

    <telerik:RadTextBox ID="RadTextBox1" runat="server" onkeyup="onkeyupEvent();">                 

    <script type="text/javascript"
    function onkeyupEvent() 
        var text = $find("<%= RadTextBox1.ClientID %>").get_textBoxValue();  
        alert (text);  

Back to Top