kendoui笔记
2015-10-12 14:28
405 查看
修改编辑和添加对话框标题: edit: function(e) { var editWindow = e.container.data("kendoWindow"); if (e.model.isNew()) { editWindow.title('新增'); } else { editWindow.title('编辑'); } width: 300 },
修改编辑和添加对话框宽度和高度:
editable: { mode: "popup", window: { width: 400, height: 450, open: function() { //设置编辑框居中并且距离顶端距离为50px this.center().setOptions({ position: { top: 50, left: this.options.position.left } }); } } },分页:
pageable: { refresh: GOLBAL.refresh, buttonCount: GOLBAL.buttonCount, // pageSize: GOLBAL.pageSize pageSizes: GOLBAL.pageSizes },pageSizes的作用:
kendogrid属性设置:
selectable: true //选中该行,该行变色
sortable: true,//排序
filterable: true, //打开筛选
加载中文样式(时钟,筛选,编辑button的title等变为中文)
require(['kendoMessage', 'kendo.notification.min', 'kendo.datetimepicker.min', 'cultures/kendo.culture.zh-CN.min'], function() {
ready(){}//初始化程序
});
相关文章推荐
- hdu 1159 Common Subsequence(最长公共子序列 DP)
- 手把手教你接口自动化测试 – SoapUI & Groovy
- hdu 1711 Number Sequence
- hdu 2817 A sequence of numbers(快速幂取余)
- hdu 1509 Windows Message Queue (优先队列)
- 【UI布局优化】Android布局优化的几种方式
- UICollectionView
- 解决PKIX:unable to find valid certification path to requested target 的问题
- HashMap按照value值进行排序
- Android经常使用UI包裹 - EditText
- List View Android官方API Guides
- 关于 UIEdgeInsets 的使用
- Operation not possible due to RF-kill
- 一些easyui组件不生效或者不能取值的问题解释
- QueryRunner的使用
- ui-grid
- iOS开发- UICollectionView详解+实例
- 第10章 信号
- AS gradle问题 解决记录
- HDU 4296 Buildings