This is a migrated thread and some comments may be shown as answers.
RadComboBox
1 Answer 19 Views
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 18 Jan 2013, 03:01 PM
Hello Community,

i have a Problem with OnClientBlur and OnClientFocus and i hope you can help my with that.

In short... It doesn't work.

Is it not the same like the html attributes  "onfocus" and "onblur"?

<telerik:RadComboBox Width="140px" ID="rcbLaufzeit" runat="server" Skin="Web20" CssClass="left ddlisten"
    AutoPostBack="false" CloseDropDownOnBlur="true" Filter="Contains" ForeColor="#212c57"
    MarkFirstMatch="true" OnClientBlur="disableFehlerhinweis('tbLaufzeit'); hilfeTextDeaktivieren('HilfeLaufzeit');" OnClientFocus="hilfeTextAktivieren('HilfeLaufzeit');">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Jahre" Value="1" />
        <telerik:RadComboBoxItem runat="server" Text="Monate" Value="2" />
    </Items>
</telerik:RadComboBox>

If you need more Informations just ask.

Thanks for reading!

Daniel

Edit: Sorry for that title. I forgot to edit it :(

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 18 Jan 2013, 07:54 PM
Hey Daniel,

The problem is the way you setting the client events, as you can't set them like normal html elements. You'll need to correct it like so:

<telerik:RadComboBox Width="140px" ID="rcbLaufzeit" runat="server" Skin="Web20" CssClass="left ddlisten"
  
    AutoPostBack="false" CloseDropDownOnBlur="true" Filter="Contains" ForeColor="#212c57"
  
    MarkFirstMatch="true" OnClientBlur="function(sender, args){disableFehlerhinweis('tbLaufzeit'); hilfeTextDeaktivieren('HilfeLaufzeit');}" OnClientFocus="function(sender, args){hilfeTextAktivieren('HilfeLaufzeit');}">
  
    <Items>
  
        <telerik:RadComboBoxItem runat="server" Text="Jahre" Value="1" />
  
        <telerik:RadComboBoxItem runat="server" Text="Monate" Value="2" />
  
    </Items>
  
</telerik:RadComboBox>

I hope that helps.
Asked by
Daniel
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or