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

Validation Groups

1 Answer 289 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 29 Apr 2016, 01:20 PM
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?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 02 May 2016, 07:10 AM
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
Tags
Wizard
Asked by
Stephen
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or