Kendo UI 使用問題
發(fā)表于2019-05-10
回復(fù):0
查看:2168 |
在查詢界面使用Kendo控件渲染頁面grid和下拉框控件。頁面有新加,修改和瀏覽按鈕。查詢條件有下拉框,新加和修改界面含有和查詢條件一樣的下拉框。編輯界面數(shù)據(jù)綁定方式用如下:
<pre class='brush: csharp'>@Html.TextBox("LocationID", @Model.LocationID, new
{
required = "required",
validationmessage = "Please select the Location"
})
編輯和新增頁面采用如下方式:
$("<div></div>").kendoWindow({
title: "Workspace",
modal: true,
content: root +'WS/Edit/'+dataItem.WorksapceID,
height: 600,
width: 850,
close: function () {
// e.preventDefault();
this.destroy();
OnRefresh(dataItem);
},
}).data("kendoWindow").center().open();</pre>
問題是彈窗關(guān)閉后回到index頁面,所以的kendo對(duì)象都不認(rèn)識(shí)了,請(qǐng)問該怎么解決?多謝各位大蝦啦~~~
登錄 慧都網(wǎng)發(fā)表評(píng)論