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

onkeyup event

1 Answer 470 Views
Input
This is a migrated thread and some comments may be shown as answers.
Michael Constantine
Top achievements
Rank 1
Michael Constantine asked on 18 Aug 2009, 03:32 PM
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.
Michael

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Aug 2009, 06:12 AM
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.

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

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

-Shinu.
Tags
Input
Asked by
Michael Constantine
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or