![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
kendoUI
sunjingyan
你不是真正的快乐
展开
-
Kendo UI:Grid中标题css样式设置
问题Grid表格的标题样式怎么设置?解决方案使用headerAttributes属性设置,如果有css中class属性,需要加双引号””.如{ field: "name", headerAttributes: { "class": "table-header-cell", style: "text-align: right; font-s原创 2014-11-27 15:05:43 · 10510 阅读 · 0 评论 -
KendoUI:Grid控件的使用
1.创建和基本选项配置有两种创建grid的方式,我这里使用已存在的html div标签,然后再将div元素kendo化.$(function(){ $('#grid') .kendoGrid({ dataSource : dataSource, //数据源加载 pageable : { //分页信息选项设置 input :原创 2014-11-27 14:27:01 · 14040 阅读 · 3 评论 -
Kendo UI:Grid中单元格样式控制
问题Grid某个单元格的样式怎么设置?解决方案使用attributes属性设置,如果有css中class属性,需要加双引号””.如{ field: "name", title: "Name", attributes: { "class": "table-cell", style: "text-align: right; f原创 2014-11-27 15:02:57 · 8454 阅读 · 3 评论 -
Kendo UI:Grid中单元格为下拉框/时间控件等
问题Grid中如何自定义单元格input框的类型,如下拉框,时间控件等?解决方案通过editor选项设置,如下拉框类型(以ComboBox为例){ field: "pageLayoutTemplateId", title: "布局模板*", width: 100,原创 2014-11-27 17:18:13 · 6190 阅读 · 0 评论 -
Kendo UI:Grid中单元格的数据源的设置-field选择域的问题
问题Grid中数据如果不显示model中field值,怎么设置?解决方案使用kendotemplate: # if(domainInfoNames) {# #:domainInfoNames# # }else{ # 无 #}#{field: "domainInfoIds",title: "页面组",width: 2原创 2014-11-27 14:57:02 · 3919 阅读 · 0 评论 -
Kendo UI:Grid中单元格日期格式化
Grid中怎么格式化时间类型数据?解决方案(1)使用format格式化 { field: "updateTime", title: "更新时间", width: 200, format: "{0: yyyy-MM-dd HH:mm:ss}"原创 2014-11-27 15:00:09 · 9491 阅读 · 0 评论 -
Kendo UI:Grid自定义command实现对行数据的操作
问题Grid中如何自定义操作列?解决方案通过click选项设置,如{ name: "details", click: function(e) { var tr = $(e.target).closest("tr"); // get the current table row (tr) var dat原创 2014-11-27 15:06:45 · 9058 阅读 · 0 评论