Radwindow in side requiredfieldvalidator initially not working

4 posts, 0 answers
  1. NA
    NA avatar
    39 posts
    Member since:
    Aug 2013

    Posted 26 Feb 2014 Link to this post

    Rad window in side requiredfieldvalidator initially not working
       for example(I using validation group ,the validation group given all filed same when i click Rad button show the message "pleas fill all mandatory fields".
    This is not perform initial ,after any "Auto post back" is done the validation is working  )

          pleas help me sample code(client side & sever side)
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Feb 2014 in reply to NA Link to this post


    Please have a look into the sample code snippet which works fine at my end.

    <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true">
            <asp:Label ID="Label1" runat="server" Text="Name">
            <telerik:RadTextBox ID="RadTextBox1" runat="server">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="RadTextBox1" runat="server" ErrorMessage="Manadatory" ValidationGroup="Group1">
            <br />
            <asp:Label ID="Label2" runat="server" Text="Password">
            <telerik:RadTextBox ID="RadTextBox2" runat="server" TextMode="Password">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="RadTextBox2"   ErrorMessage="Manadatory" ValidationGroup="Group1">
            <telerik:RadButton ID="RadButton1" runat="server" Text="Validate" ValidationGroup="Group1">

    Please provide your code if it doesn't help.
  3. hamid
    hamid avatar
    2 posts
    Member since:
    Nov 2014

    Posted 04 Nov 2014 in reply to Shinu Link to this post

    I have a Problem too.
    I add RawWindow ,Its Work Perfectly until When I add Require Field Validator TO project and Then When I clicked The Button Its Not Openning.
    What Can i do ?
  4. Marin Bratanov
    Marin Bratanov avatar
    3907 posts

    Posted 05 Nov 2014 Link to this post

    Hi hamid,

    The most likely reason for such an issue is that the project is based on .NET 4.5 and adding the validator enables the Unobtrusive Validation mode, which causes a script error. To deal with this I advise that you examine the following help article: http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting-jquery.html. If this is not the case, I advise that you send us a sample where we can see the issue in order to help.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top