Partial views with form in core wizard
1 Answer 20 Views
Emirates Real Estate Solutions
Top achievements
Rank 1
Emirates Real Estate Solutions asked on 28 Apr 2021, 05:22 AM

Hi,

I am struggling to use core UI wizard with respect to my requirement. What I need from wizard control is to provide navigation (Next, Previous), load partial views and submit data to a form. Following is an example;

 

<form>

Step 1

Partial View 1

Step 2

Partial View 2

Finish (Form submission)

 

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 03 May 2021, 04:48 AM

Hi,

The approach you've shared in the support ticket submitted on the same topic is to set the contentUrl option of the step. I am posting it here, in case someone else faces the same scenario.

wizard.options.reloadOnSelect = true;

if (A) {

  e.step.options.contentUrl = '@Url.Action("A", "Registration", Model)';

} else if (B) {

e.step.options.contentUrl = '@Url.Action("B", "Registration", Model)';

}

wizard.options.reloadOnSelect = false;

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Asked by
Emirates Real Estate Solutions
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or