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

Wizard step validation not working

1 Answer 156 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Didier Prévot
Top achievements
Rank 2
Didier Prévot asked on 06 Dec 2016, 01:32 PM

Hi,

I'm using the RadWizard inside a custom advanced template for the RadScheduler Insert/Edit. Said RadScheduler is itself in a UserControl that is loaded from a master page on menu button click (All working from AJAX, no page ever reloaded).

 

Here's the chain of event to help you understand my situation : 

 

Master page loads usercontrol containing RadScheduler.

RadScheduler loads a custom template on Insert/Edit

Custom template uses a RadWizard to guide the user through an appointment insertion

I've used test cases provided in various threads that had similar question but they do not work : User can press "Next" without validation triggering

I also tried to add this line to my web.config but since I'm using .Net 4.0 I think it should not even matter : 

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

 

Here is one of the template I tried, I can press "Next" on it without entering any info on the textboxes

 

<telerik:RadWizard runat="server" ID="RadWizard2" RenderedSteps="All">
    <WizardSteps>
        <telerik:RadWizardStep ID="RadWizardStep3" ValidationGroup="Group1"  >
 
            <asp:TextBox runat="server" ID="TextBox1" ValidationGroup="Group1" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="ADD TEXT"
                ControlToValidate="TextBox1" ValidationGroup="Group1">
            </asp:RequiredFieldValidator>
        </telerik:RadWizardStep>
       <telerik:RadWizardStep ID="RadWizardStep1" ValidationGroup="Group2">
 
            <asp:TextBox runat="server" ID="TextBox2" ValidationGroup="Group2" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="ADD TEXT"
                ControlToValidate="TextBox2" ValidationGroup="Group2">
            </asp:RequiredFieldValidator>
        </telerik:RadWizardStep>
          <telerik:RadWizardStep ID="RadWizardStep2" ValidationGroup="Group3">
 
            <asp:TextBox runat="server" ID="TextBox3" ValidationGroup="Group3" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="ADD TEXT"
                ControlToValidate="TextBox3" ValidationGroup="Group3">
            </asp:RequiredFieldValidator>
        </telerik:RadWizardStep>
      
    </WizardSteps>
</telerik:RadWizard>

 

Version of Telerik is 2016.3.1027

Target Framework is .Net 4.0

 

Thank you in advance

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 09 Dec 2016, 09:40 AM
Hi,

Is the described issue only reproduced in this exact setup? If you put the wizard in a separate standalone page does the validation work as expected?

If the issue is only observed in your exact setup, I would ask you to submit a support ticket with an attached sample project, so that we can inspect and troubleshoot the issue locally.

Regards,
Bozhidar
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
Wizard
Asked by
Didier Prévot
Top achievements
Rank 2
Answers by
Bozhidar
Telerik team
Share this question
or