Hi,
I have in my html RadTextBox:
<telerik:RadTextBox ID="ShrtgLicAreaTextBox" runat="server" TabIndex="2" Width="300px" CssClass="textbox" MaxLength="40" Height="15px" onKeyUp="Count(this,40)" onChange="Count(this,40)" FocusedStyle-BackColor="#D4DEEC" >
<ClientEvents OnBlur="OnBlur" />
Here is my js for OnBlur event:
<script type="text/javascript">
function OnBlur(sender) {
sender.get_styles().EnabledStyle[0] += "background-color:#FFCC99;";
}
</script>
Bur for some reason when I leave textbox background color is not changing looks like OnBlur event does not work.
Thank so much for yuor help.
I have in my html RadTextBox:
<telerik:RadTextBox ID="ShrtgLicAreaTextBox" runat="server" TabIndex="2" Width="300px" CssClass="textbox" MaxLength="40" Height="15px" onKeyUp="Count(this,40)" onChange="Count(this,40)" FocusedStyle-BackColor="#D4DEEC" >
<ClientEvents OnBlur="OnBlur" />
Here is my js for OnBlur event:
<script type="text/javascript">
function OnBlur(sender) {
sender.get_styles().EnabledStyle[0] += "background-color:#FFCC99;";
}
</script>
Bur for some reason when I leave textbox background color is not changing looks like OnBlur event does not work.
Thank so much for yuor help.