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

OnClientBlur not called on Tab Key

1 Answer 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Softec
Top achievements
Rank 1
Softec asked on 12 Feb 2009, 04:55 PM
Hi

If you leave the RadComboBox by pressing the TAB key the OnClientBlur event doesn't gets fired. I'm building some javascript functions which prevent the user from leaving a once selected RadComboBox empty. Meaning i fill back in the once selected values. I'm doing this at the moment he leaves the combobox OnClientBlur. If the user only uses his mouse, everthing works fine. But if he tabs through the form the event doesn' gets fired until you klick somewhere on the page.

What solutions do you offer for my problem? 

Thanks!


1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Feb 2009, 01:28 PM

Hi Studach,

I tried the scenario with the latest version of RadControls (Product version 2008.03.1314.20) and this is working fine in my end. I am not sure about what is happening at your side. It would be helpful if you post the code which you tried. Here's the code which I tried to achieve the functionality.


ASPX:
<telerik:RadComboBox ID="RadComboBox1" Runat="server" OnClientBlur="OnClientBlur">  
    <Items> 
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"   
            Value="RadComboBoxItem1" /> 
        <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2"   
            Value="RadComboBoxItem2" /> 
    </Items> 
</telerik:RadComboBox> 

JavaScript:
<script type="text/javascript">  
function OnClientBlur()  
{  
    alert("Entered in OnBlur");  
}  
</script> 

Thanks,
Princy.
Tags
ComboBox
Asked by
Softec
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or