简体   繁体   English

在剑道网格中不显示按钮

[英]Button Not showing in Kendo Grid

I have a kendo grid that I'm using in asp.net MVC and the column won't display anything. 我在asp.net MVC中使用了一个Kendo网格,该列将不显示任何内容。 It just returns empty. 它只是返回空。 I don't see the input in code when I use developer tools either. 使用开发人员工具时,我也看不到代码中的输入。

columns.Template(@<text>
    <input type="button" class="btn btn-default" value="Tasks"
 onclick="window.location.href = '../../OBClientSetupTasks/Index/@item.SetupID'" />
            </text>).HeaderTemplate(@<text>Tools</text>);
          })

I don't understand what I'm missing as that value should display the button. 我不明白我缺少什么,因为该值应该显示按钮。

对于AJAX绑定的Kendo网格,您需要使用ClientTemplate帮助器和JS模板( #= …# )在客户端合并值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM