This question is locked. New answers and comments are not allowed.
Hello,
I'm currently just playing around with the Telerik MVC extensions as we are planning on using the MVC3 Beta Release candidate, released yesterday, on a new project. So far, so good. One quick question though. Can you load views or partial views as content of the window? This may not be appropriate use and am happy to hear alternative approaches if so, as I am an MVC newby coming from ASP.NET forms.
I am basically thinking of using the window to load a form wizard. The wizard will probably be built using a series of views. Here is my very basic test project code that renders a window in a partial view, but can I load a view or another partial view into this? Should I indeed do this? Sorry to be so vague and thanks in advance.
I'm currently just playing around with the Telerik MVC extensions as we are planning on using the MVC3 Beta Release candidate, released yesterday, on a new project. So far, so good. One quick question though. Can you load views or partial views as content of the window? This may not be appropriate use and am happy to hear alternative approaches if so, as I am an MVC newby coming from ASP.NET forms.
I am basically thinking of using the window to load a form wizard. The wizard will probably be built using a series of views. Here is my very basic test project code that renders a window in a partial view, but can I load a view or another partial view into this? Should I indeed do this? Sorry to be so vague and thanks in advance.
@using Telerik.Web.Mvc.UI
@(
Html.Telerik().Window()
.Name("Window")
.Title("Telerik Window for ASP.NET MVC")
.Draggable(true)
.Resizable(resizing => resizing
.Enabled(true)
.MinHeight(250)
.MinWidth(500)
)
.Modal(true)
.Buttons(b => b.Maximize().Close())
.Content(() =>
{
// content? can you load a view?
})
.Width(800)
.Height(600)
.ClientEvents(events => events
.OnLoad("onWindowLoad")
)
)
<
script
type
=
"text/javascript"
>
function onWindowLoad(e) {
var window = $(this).data('tWindow');
window.center().open();
}
</
script
>