Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Templates 剑道网格点击按钮与链接_Templates_Button_Kendo Ui_Grid_Kendo Grid - Fatal编程技术网

Templates 剑道网格点击按钮与链接

Templates 剑道网格点击按钮与链接,templates,button,kendo-ui,grid,kendo-grid,Templates,Button,Kendo Ui,Grid,Kendo Grid,我有这个密码 toolbar: [{ text: "Add new attachement", name: "popup", iconClass: "k-icon k-add"}], columns: [ {field: "FileName" , title: 'File name' ,template: '<a href="filecontent" class="k-button link">#=FileName

我有这个密码

 toolbar: [{ text: "Add new attachement", name: "popup", iconClass: "k-icon k-add"}],
                columns: [
                  {field: "FileName" , title: 'File name' ,template: '<a href="filecontent" class="k-button link">#=FileName#</a>' },
                  { field: "Link" },
                  { command: ["edit", "destroy"] }
                ],
                dataSource: {
                    data: [
                     { id: 1, Link: filecontent, FileName: filename },
                    ],
                    schema: {
                        model: { id: "id" }
                    }
                },               
                editable: {
                    mode: "inline"
}
工具栏:[{文本:“添加新附件”,名称:“弹出”,图标类:“k-icon k-Add”},
栏目:[
{字段:“文件名”,标题:“文件名”,模板:''},
{字段:“链接”},
{命令:[“编辑”、“销毁”]}
],
数据源:{
数据:[
{id:1,Link:filecontent,FileName:FileName},
],
模式:{
模型:{id:“id”}
}
},               
可编辑:{
模式:“内联”
}
例如,filecontent=”https://www.google.co.il/“,我从db那里得到的。 现在的问题是,在我将模板更改为 模板:'#=文件名' 按钮“添加新记录”不起作用,但编辑正在工作,我不知道如何修复它,我希望用户可以添加:链接的名称和一个链接,然后他可以单击该名称并访问该链接。

根据没有名为“弹出”的内置命令。如果您希望按钮激活创建操作,则其
name
属性应改为“create”。检查。此外,如果您希望创建操作打开一个弹出窗口,则必须将设置为“弹出”。退房