Kendo UI:Grid中单元格为下拉框/时间控件等
来源:互联网 发布:杜兰特伦纳德对决数据 编辑:程序博客网 时间:2024/06/01 10:40
问题
Grid中如何自定义单元格input框的类型,如下拉框,时间控件等?
解决方案
通过editor选项设置,如下拉框类型(以ComboBox为例)
{ field: "pageLayoutTemplateId", title: "布局模板<span>*</span>", width: 100, template:kendo.template($("#template_template").html()), editor:function(container,options) { var pageLayoutTemplateId = options.model.pageLayoutTemplateId; var input = $('<input />'); input.attr("name", options.field); input.appendTo(container); input.kendoComboBox({ dataTextField:"templateName", dataValueField:"id", value: pageLayoutTemplateId, dataSource:allTemplatesJson, filter: "contains", suggest: true, }); } }
0 0
- Kendo UI:Grid中单元格为下拉框/时间控件等
- Kendo UI:Grid中单元格日期格式化
- Kendo UI:Grid中单元格样式控制
- Kendo UI:Grid中单元格的数据源的设置-field选择域的问题
- kendo ui grid 汉化
- Kendo UI Grid
- Kendo UI Grid
- kendo ui grid只需要更新按钮分页控件不需要
- kendo UI gridview绑定下拉框示例
- Kendo UI:Grid中标题css样式设置
- kendo ui grid 高度自适应
- [JS]: Kendo UI: Grid, Upload
- 封装扩展Kendo UI Grid
- kendo ui grid 合計
- AJAX式資料清單的新選擇-Kendo UI Grid (Grid中查找)
- Kendo Web UI Grid添加一个html控件如(checkbox,button)
- how to use kendo.ui.Grid
- Kendo ui Grid的创建步骤
- Glance开发基础
- 你的Android应用完全不需要那么多的权限
- java for android 入门二
- Android动画效果translate、scale、alpha、rotate详解
- MANIFEST.MF清单文件格式要求
- Kendo UI:Grid中单元格为下拉框/时间控件等
- 使用curl来调试你的应用
- 在Tomcat和Eclipse进行远程调试的配置
- Sicily 1198 Substring
- GNU C __attribute__ 机制
- Codeforces Round #277 (Div. 2)
- 多线程技术还是非常重要的
- 君の英語力を試そう…高校生和英翻訳コンテスト 读卖新闻
- jquery 点击元素后,滚动条滚动至该元素位置 - 笔记