Rad Combobox on ClientBlur Event Not Setting Custom Text

2 posts, 0 answers
  1. Haris
    Haris avatar
    1 posts
    Member since:
    Jun 2013

    Posted 22 Jun 2013 Link to this post

    Rad Combobox on ClientBlur Event setting Custom Text fine when we are going to press TAB  key but we are getting issue when we are selecting item from Rad Combo Box manually using Mouse.On clicking suppose i have text :


    I have called onclientblur event which is splitting text into ILS and Apple and I am showing ILS.

    On TAB it is working fine(Showing ILS) , But problem is getting issue (showing ILS-APPLE) on selecting the item clicking by mouse and then clicking out side it is showing ILS - APPLE instead of ILS.

    Thanks in Advance

  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1968 posts

    Posted 27 Jun 2013 Link to this post

    Hello Haris,

    I would like to clarify that we are not aware of such issue with our RadComboBox control and I am afraid that I was not able to replicate that problem locally. Here you may watch a very similar scenario behavior and it works as expected. Below you may find the source code of the tested project for reference. Please explain what exactly is different in your project and clarify what version of the RadControls you are using.
    //markup code
    <telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="Select an item please..." OnClientBlur="ClientBlur">
            <telerik:RadComboBoxItem Text="Item 1" />
            <telerik:RadComboBoxItem Text="Item 2" />
            <telerik:RadComboBoxItem Text="ILS - APPLE" />
    function ClientBlur(sender, args) {
        var combo = sender;
        var selectedText = combo.get_text();
        if (selectedText == "ILS - APPLE") {
            var dashChar = selectedText.indexOf("-");
            var newText = selectedText.substr(0, dashChar - 1);
        else {

    Boyan Dimitrov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top