问题
Grid中数据如果不显示model中field值,怎么设置?
解决方案
使用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())
}