Wizard step validation not working

2 posts, 0 answers
  1. Didier Prévot
    Didier Prévot avatar
    6 posts
    Member since:
    May 2010

    Posted 06 Dec 2016 Link to this post

    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

  2. Bozhidar
    Admin
    Bozhidar avatar
    1118 posts

    Posted 09 Dec 2016 Link to this post

    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.
Back to Top