I have this kendo window in my app
Html.Kendo().Window()
.Name("copyStructure")
.Title("Copy Structure")
.Content("Loading...")
.LoadContentFrom("CopyStructure", "NewXmlLayout") // <-- here*
.Draggable(false)
.Visible(false)
.Modal(true)
.Actions(s => s.Custom(""))
.Events(e => e.Open("openWindow").Close("closeWindow"))
And I am trying to pass data to the action in the LoadContentFrom() which is returned by a JavaScript function, but I don't know how to do it. I can pass data like this:
.LoadContentFrom("CopyStructure", "NewXmlLayout", new { type= "INPUT" })
But is not what I'm looking for.
The JS function:
function getInfo() {
return { type: "INPUT" };
};
My controller:
public ActionResult CopyStructure(string type)
{
return PartialView();
}