easyui datagrid editors扩展之combogrid
来源:互联网 发布:windows脚本 编辑:程序博客网 时间:2024/05/19 03:23
定义:
01
$.extend($.fn.datagrid.defaults.editors, {
02
combogrid: {
03
init:
function
(container, options){
04
var
input = $(
'<input type="text" class="datagrid-editable-input">'
).appendTo(container);
05
input.combogrid(options);
06
return
input;
07
},
08
destroy:
function
(target){
09
$(target).combogrid(
'destroy'
);
10
},
11
getValue:
function
(target){
12
return
$(target).combogrid(
'getValue'
);
13
},
14
setValue:
function
(target, value){
15
$(target).combogrid(
'setValue'
, value);
16
},
17
resize:
function
(target, width){
18
$(target).combogrid(
'resize'
,width);
19
}
20
}
21
});
用法:
01
$(
'#dg'
).datagrid({
02
columns:[[
03
{field:
'productid'
,name:
'ProductId'
,width:100,
04
editor:{
05
type:
'combogrid'
,
06
options:{
07
panelWidth:450,
08
idField:
'code'
,
09
textField:
'name'
,
10
url:
'datagrid_data.json'
,
11
columns:[[
12
{field:
'code'
,title:
'Code'
,width:60},
13
{field:
'name'
,title:
'Name'
,width:100},
14
{field:
'addr'
,title:
'Address'
,width:120},
15
{field:
'col4'
,title:
'Col41'
,width:100}
16
]]
17
}
18
}
19
}
20
]]
21
});
- easyui datagrid editors扩展之combogrid
- easyui datagrid editors扩展之combogrid
- easyui DataGrid editors扩展之combogrid ,combogrid 下拉选择后填充 editor 列内容方法
- 继承扩展DataGrid的editors
- easyui datagrid之editor扩展
- jquery easyui 中combogrid , datagrid 自定义分页
- 【easyUI】下拉框中加datagrid-combogrid组件应用
- jQuery easyui datagrid扩展之颜色条
- easyUI ComboGrid
- easyui ComboGrid
- easyui的datagrid中editor和combogrid的结合使用
- easyui datagrid 编辑行绑定combogrid并实现下拉赋值
- jQuery EasyUI使用教程之过滤ComboGrid
- EasyUI datagrid datetimebox扩展
- easyui datagrid 扩展
- easyui datagrid json扩展
- easyui datagrid 扩展方法
- 扩展jquery easyui datagrid 之动态绑定列和数据
- PyQt4学习资料
- C++/C#中堆栈、对象内存模型、深浅拷贝、Array.Clone方法
- Tomcat/Weblogic下的路径问题
- csharp: winform using Microsoft.Ink(Tablet PC API) create Signature image
- VC++ 中 int类型转换 LPCTSTR类型 几种方法
- easyui datagrid editors扩展之combogrid
- JSP中request详解
- 又见一帘幽梦
- UVA 10142 将军
- excel一个sheet最大行数
- C# WebBrowser
- Self-evaluation
- linux c 下关于semaphore的使用
- div 设置滚动条