Validation Groups

2 posts, 0 answers
  1. Stephen
    Stephen avatar
    3 posts
    Member since:
    Apr 2013

    Posted 29 Apr Link to this post

    I would like my validation group to only work if the Next button is clicked.  I would like to disable it for the Previous button.  In other words, I don't want the Previous button to trigger validation.  Is this possible?
  2. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 02 May Link to this post

    Hello,

    Here is a sample code that worked correctly at my side to validate the next button and not validate the previous button:
    <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>


    Regards,
    Plamen
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top