This question is locked. New answers and comments are not allowed.
The documentation on creating a window from a partial view doesn't make sense to me and it's not clearly described anywhere that I can find. Seems like I have to call some controller action, but in the example, the only controller action does not correspond to the "AjaxView" and "Window" parameters passed to the LoadContentFrom method.
In any case, if I have a partial view, I don't want to create a controller action just to get it - I'd like to be able to do something like this:
Is that possible? If not, could we get an explanation of how LoadContentFrom is supposed to work to load a partial?
Thanks.
@(Html.Telerik().Window()
.Name("Window")
.LoadContentFrom("AjaxView", "Window")
.Buttons(buttons => buttons.Refresh().Maximize().Close())
.Width(450)
.Draggable(true)
)
In any case, if I have a partial view, I don't want to create a controller action just to get it - I'd like to be able to do something like this:
@{ Html.Telerik().Window() .Name("Window") .Draggable(true) .Modal(false) .Buttons(b => b.Close()) .Content(@<text> @Html.RenderPartial("mypartial", ViewData) </text>) .Width(500) .Height(500) .Visible(false) .Render();}
Is that possible? If not, could we get an explanation of how LoadContentFrom is supposed to work to load a partial?
Thanks.