ASP.NET AJAX RadWizard

1 Answer 66 Views
Wizard
Linsemon
Top achievements
Rank 1
Linsemon asked on 11 Jan 2022, 03:12 PM

Hi

We are struggling to get validation in place on RadWizard. Tried all options mentioned in the docs and previous support queries. Sample code below where no validation is fired. Could you please let me know what we are missing.

Note: to meet our requirements, content of each step will be a separate user control, on the aspx page, a step will be added at runtime with user control suited to business requirement added on the step. Each step will include multiple elements which will be required to be validated for data and format with minimal javascript.

Many Thanks

 

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

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 11 Jan 2022, 03:19 PM

Hi Linsemon,

I have tested your snippet as is and it works properly as long as the unobtrusive validation is configured properly. For example, in projects with .NET 4.5+, the following entry should be added to the web.config:

Regards,
Peter Milchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Wizard
Asked by
Linsemon
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or