How to initiate AJAX Request with onBlur?

2 posts, 0 answers
  1. briankb
    briankb avatar
    88 posts
    Member since:
    Feb 2004

    Posted 15 Jul 2008 Link to this post

    I'm using controls from : RadControls for ASPNET AJAX Q1 2008

    I'm creating a registration form and trying to use RADAjaxManager, and RADInput with standard validation controls. Everything is working fine except I need to have the validation run onBlur.

        <td class="label">*First Name:</td> 
        <td class="field"
            <telerik:RadTextBox runat="server" ID="FirstName" TextMode="SingleLine" Columns="8" MaxLength="20" InvalidStyleDuration="100" Width="145px"/> 
        <td class="validation"
            <asp:RequiredFieldValidator ID="RequireFirstName" runat="server" ControlToValidate="FirstName" ErrorMessage="First Name is Required" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>                                             

    How do I force the validation when the user leaves the Firstname field (onblur) using RAD Ajax?
  2. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 17 Jul 2008 Link to this post

    I am not sure whether you can force the validation client-side in this case, however intercepting the onBlur event of RadTextBox and performing ajax request (in ASP.NET AJAX web site) "behind the scenes" may do the trick.

    I found this thread in the old Classic forums related to this subject:

Back to Top