【问题标题】:How to write "{" in kendo grid template?如何在剑道网格模板中写“{”?
【发布时间】:2017-03-15 09:07:03
【问题描述】:

我在剑道网格中有一个包含模板的列。

  {
        field: '["FileID"]',
        width: 100,
        title: "file",
        template: "<xi  control-url='FileManager/FilePreview/FilePreview'  
                   client-args={hideVisualization:true } />"
    }

但是client-args中的“{”有错误。

未处理的拒绝:{}

【问题讨论】:

    标签: kendo-grid kendo-template


    【解决方案1】:

    你可以试试 client-args=({hideVisualization:true })。

    【讨论】:

    • 不,client-args 是一个 json 对象。我解决了这个问题:client-args=\'{ hideVisualization:true }\'
    【解决方案2】:

    我通过这个解决它 客户端参数=\'{ hideVisualization:true }\'

    【讨论】:

      猜你喜欢
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-11
      相关资源
      最近更新 更多