Validation Groups

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

    Posted 29 Apr 2016 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
    Plamen avatar
    2958 posts

    Posted 02 May 2016 Link to this post


    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">
                      <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">
                     <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">
                        <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">

Back to Top