Kendo UI:Grid中单元格的数据源的设置-field选择域的问题

来源:互联网 发布:mac用哪个剪辑视频软件 编辑:程序博客网 时间:2024/05/29 10:11

问题

Grid中数据如果不显示modelfield,怎么设置?

解决方案

使用kendotemplate:

<script type="text/x-kendo-template" id="domain_template">      # if(domainInfoNames) {##:domainInfoNames#      # }else{ #      <span>无</span>      #}#</script>{field: "domainInfoIds",title: "页面组",width: 200,template:kendo.template($("#domain_template").html())}


0 0