【问题标题】:My kendo template Field does not bind the data in Grid Column我的剑道模板字段没有绑定网格列中的数据
【发布时间】:2013-12-20 08:29:17
【问题描述】:

我使用 Kendo Grid 来绑定我的数据。

我在数据绑定时检查了一些空条件,但它没有绑定数据,它在模板绑定中显示错误。

 { field: 'Phone', title: 'Phone', template: '<span>#if(Phone != null){#<span># Phone#</span> #}# </span>' }

【问题讨论】:

    标签: kendo-grid


    【解决方案1】:

    你只是这样尝试......你错过了剑道网格中的模板绑定(格式类似于(#=Fieldname#)

    { field: 'Phone', title: 'Phone', template: '#if(Phone != null){##= Phone# #}# ' }

    现在你试试这个......它的工作原理

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-19
      • 1970-01-01
      • 1970-01-01
      • 2017-04-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多