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

Grid in Wizard

1 Answer 118 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 28 Sep 2020, 07:17 PM

Hi,

I'd like to add a grid in one of my steps but having a hard time figuring this out and no good examples. I'd like to load the content by calling my controller using the method ".LoadContentFrom("ActionName", "ControlerName");" which you have the ability to with many other controls but for now I think using a TemplateId will work?

 

Thanks,

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 01 Oct 2020, 01:25 PM

Hello John,

If you are wondering how to call a controller method that will return a Partial View for the Wizard's steps, below you can use the ContentUrl configuration as shown below:

s.Add()
	.ContentUrl(Url.Action("SecondStep", "Home"));
s.Add()
	.ContentUrl(Url.Action("ThirdStep", "Home"))
	.Enabled(false);

Controller:

public ActionResult SecondStep()
{
	return PartialView();
}

public ActionResult ThirdStep()
{
    return PartialView();
}

Let me know if that would help you resolve the problem.

Regards,
Martin
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Wizard
Asked by
John
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or