【发布时间】:2014-08-09 06:34:58
【问题描述】:
我的应用中有这个剑道窗口
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"))
我正在尝试将数据传递给由 JavaScript 函数返回的 LoadContentFrom() 中的操作,但我不知道该怎么做。我可以像这样传递数据:
.LoadContentFrom("CopyStructure", "NewXmlLayout", new { type= "INPUT" })
但这不是我要找的。p>
JS函数:
function getInfo() {
return { type: "INPUT" };
};
我的控制器:
public ActionResult CopyStructure(string type)
{
return PartialView();
}
【问题讨论】:
-
将
"NewXmlLayout"替换为getInfo()会发生什么? “不是我要找的东西”是什么意思? -
"NewXmlLayout"是我的控制器,CopyStructure是我的操作。
标签: asp.net-mvc kendo-ui telerik