This is a migrated thread and some comments may be shown as answers.

Radwindow in side requiredfieldvalidator initially not working

3 Answers 126 Views
Window
This is a migrated thread and some comments may be shown as answers.
NA
Top achievements
Rank 1
NA asked on 26 Feb 2014, 01:35 PM
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)

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Feb 2014, 05:39 AM
Hi,

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

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

Please provide your code if it doesn't help.
Thanks,
Shinu.
0
hamid
Top achievements
Rank 1
answered on 04 Nov 2014, 08:31 PM
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 ?
0
Marin Bratanov
Telerik team
answered on 05 Nov 2014, 10:59 AM

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.


Regards,

Marin Bratanov
Telerik
 

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.

 
Tags
Window
Asked by
NA
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
hamid
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or