How to render and show a form in a custom MVC control?

Posted by Community Admin on 04-Aug-2018 23:13

How to render and show a form in a custom MVC control?

All Replies

Posted by Community Admin on 11-Jan-2016 00:00

I created a custom wizard-like control which shows different forms & control. I'd like to integrate it with Sitefinity by showing forms that were already pre-created in the CMS. I can retrieve the form objevt from the CMS but cannot find a way to render itin my control's view. is there an out of the box  method to do this?

Posted by Community Admin on 14-Jan-2016 00:00

Hello Koby,

You can check the implementation of the current Feather's Forms widget. The source code of the widget could be found here:
https://github.com/Sitefinity/feather-widgets/tree/master/Telerik.Sitefinity.Frontend.Forms

I hope this helps.

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 28-Jan-2016 00:00

I also need this functionality for pages, but don't see an example for rendering a page in Feather. is there any documentation online for this? 

I'm looking to achieve something like this:

<div class="PageContent">

    @HTML.RenderSitefinityPage(Model.pageData)

</div>

Posted by Community Admin on 28-Jan-2016 00:00

Hello Koby,

For pages you can try to render them in iframe.

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 28-Jan-2016 00:00

Can you post an example for rendering a sitefinity page?

Posted by Community Admin on 02-Feb-2016 00:00

Hi Koby,

You can use the Raw helper in the View, for example like:

@Html.Raw("<iframe  src='http://mysite.com/my-page'></iframe>")

The result could be found in that screenshot.

Regards,
Svetoslav Manchev
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed