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())
}
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())
}
相关文章推荐
- 水晶报表问题:报表中设置多个数据源
- 关于推模式水晶报表数据源的设置问题
- 如何设置'REUSE_ALV_GRID_DISPLAY'的单个单元格的颜色
- ExtJs疑难杂症之GridPanel单元格不能选中复制问题
- Extjs的grid表格设置单元格的值(设置该行的记录的颜色)
- 因DataValueField设置不当引起的DropDownList的SelectedItem的取不到所选值的问题
- 新增格式化单元格数据功能-dotNetFlexGrid1.24,快速的设置您的表格数据的不同样式;现在开始扔掉你的Asp.net GridView吧。(更新FieldFormatorHandle参数)
- 如何设置REUSE_ALV_GRID_DISPLAY'的单个单元格的是否可以输入[转]
- 如何设置'REUSE_ALV_GRID_DISPLAY'的单个单元格的颜色
- 解决无法设置单元格最低高度的问题
- 关于Infragistics UltraWebGrid 单元格自动换行的问题
- 如何设置'REUSE_ALV_GRID_DISPLAY'的单个单元格的颜色
- 如何设置'REUSE_ALV_GRID_DISPLAY'的单个单元格的颜色
- 如何设置REUSE_ALV_GRID_DISPLAY'的单个单元格的是否可以输入
- 如何设置REUSE_ALV_GRID_DISPLAY'的单个单元格的是否可以输入
- Dxexpress 的GridControl控件中一次选择一行并且不显示单元格焦点的设置
- 用javascript将ultrawebgrid单元格的内容设置为超链接
- 如何设置'REUSE_ALV_GRID_DISPLAY'的单个单元格的颜色
- DevExpress的GridControl选择一行,不显示单元格焦点的设置
- 新增格式化单元格数据功能-dotNetFlexGrid1.24,快速的设置您的表格数据的不同样式;现在开始扔掉你的Asp.net GridView吧。(更新FieldFormatorHandle参数)