您的位置:首页 > 产品设计 > UI/UE

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

2014-11-27 14:57 253 查看
问题
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())
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐