Asp.net mvc 如何在自定义按钮上打开剑道窗口

Asp.net mvc 如何在自定义按钮上打开剑道窗口,asp.net-mvc,kendo-grid,Asp.net Mvc,Kendo Grid,我使用剑道网格,自定义按钮定义如下 @(Html.Kendo().Grid((IEnumerable<AdjustmentModel >)ViewBag.Adjustments) .Name("AdjustmentsGrid") .DefaultConfiguration() .HtmlAttributes(new { style = "height=100%" }) .ToolBar(toolbar => { toolbar.Custom().T

我使用剑道网格,自定义按钮定义如下

@(Html.Kendo().Grid((IEnumerable<AdjustmentModel  >)ViewBag.Adjustments)
  .Name("AdjustmentsGrid")
  .DefaultConfiguration()
  .HtmlAttributes(new { style = "height=100%" })
  .ToolBar(toolbar => {
      toolbar.Custom().Text("Search");
      toolbar.Custom().Text("Apply Adjustment");
      toolbar.Custom().Text("Clear");
  })
@(Html.Kendo().Grid((IEnumerable)ViewBag.Adjustments)
.名称(“调整网格”)
.DefaultConfiguration()
.HtmlAttributes(新的{style=“height=100%”)
.ToolBar(ToolBar=>{
toolbar.Custom().Text(“搜索”);
toolbar.Custom().Text(“应用调整”);
toolbar.Custom().Text(“清除”);
})
我想在“应用调整”按钮上打开剑道窗口。如何实现? 还有如何在剑道窗口上提供网格

请让我知道

谢谢。

。。。
...
toolbar.Custom().Text("Apply Adjustment").HtmlAttributes(new { @id = "applyadjust"})
...

<div class="k-content">
    <div id="applyadjustmentwindow"></div>
</div>

<script>
var window = $("#applyadjustmentwindow"),
    applybtn = $("#applyadjust")
        .bind("click", function () {
            window.data("kendoWindow").open().center();                
        });

window.kendoWindow({
    title: "Apply Adjustment",
    actions: ["Minimize", "Maximize", "Refresh", "Close"],
    content: "URL to the action from which you are loading the html (can be partial view or plain html) on the window",        
    visible: false,        
    width: "50%"
});
toolbar.Custom().Text(“应用调整”).HtmlAttributes(新的{@id=“applyadjust”}) ... 变量窗口=$(“#applyadjustmentwindow”), applybtn=$(“#applyadjust”) .bind(“单击”),函数(){ window.data(“kendoWindow”).open().center(); }); window.kendoWindow({ 标题:“应用调整”, 操作:[“最小化”、“最大化”、“刷新”、“关闭”], 内容:“在窗口上加载html(可以是部分视图或普通html)的操作的URL”, 可见:假, 宽度:“50%” });

我就是这样做的

首先在div中声明一个剑道窗口,显示:none


@(Html.Kendo().Window().Name(“MyWindowName”).Title(“测试窗口”).Content(@

我只是想演示一下

).Draggable().resizeable().Width(350).Actions(Actions=>Actions.Close())