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

Wizard Validation not working?

2 Answers 225 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 14 May 2015, 04:01 PM

Hi all,

 I've been kinda pulling my hair out over this one, I'm trying to get Wizard validation working and I don't know if its just something in my project or what, but no matter what I do, they will not fire.  I've gone as far as copying the example from the Wizard Validation article (http://www.telerik.com/help/aspnet-ajax/wizard-validation.html) and it still will not fire.

Am I missing something? Maybe some project level setting? Like I said, I feel like I'm taking crazy pills :P Thanks in advance! 

 

My entire test page, the validation does not fire:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
        <div>
            <telerik:RadWizard ID="RadWizard6" runat="server">
                <WizardSteps>
                    <telerik:RadWizardStep ID="RadWizardStep1" CausesValidation="true" Title="Personal Info" runat="server" StepType="Step" ValidationGroup="personalInfo">
                        <div class="inputWapper first">
                            <asp:Label ID="Label3" Text="First Name: *" runat="server" AssociatedControlID="FirstNameTextBox" />
                            <telerik:RadTextBox ID="FirstNameTextBox" runat="server" ValidationGroup="personalInfo" Width="320px"></telerik:RadTextBox>
                            <asp:RequiredFieldValidator ID="FirstNameRequiredFieldValidator" runat="server" ControlToValidate="FirstNameTextBox" EnableClientScript="true" ValidationGroup="personalInfo" ErrorMessage="required field" CssClass="validator" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                    </telerik:RadWizardStep>
                    <telerik:RadWizardStep Title="SecondStep">
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </telerik:RadWizardStep>
                </WizardSteps>
            </telerik:RadWizard>
        </div>
    </form>
</body>
</html>

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 May 2015, 05:32 AM
Hi Jeff,

I have copied and pasted the code provided and it worked correctly at my side. In such case the issue may be caused by the Unobtrusive validation in .NET 4.5. You can solve the issue as it is described in this help topic or by adding the following line in your web config :

<appSettings>

  <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />

</appSettings>


Hope this information will help you solve the issue. If you need further assistance please don't hesitate to contact us again.


Regards,
Plamen
Telerik
0
Jeff
Top achievements
Rank 1
answered on 15 May 2015, 03:41 PM
That fixed it! Thanks! :)
Tags
Wizard
Asked by
Jeff
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or