一. 加载方式
//class 加载方式
<select >
$('#box').combogrid({
panelWidth : 600,
idField : 'id',
textField : 'user',
url : 'content.json',
columns : [[
{
field : 'id',
title : '编号',

width : 120,
},
{
field : 'user',
title : '帐号',
width : 120,
},
{
field : 'email',
title : '邮箱',
width : 120,
},
{
field : 'date',
title : '创建时间',
width : 120,
},
]]
});

 

二.属性列表

ComboGrid( 数据表格下拉框)

$('#box').combogrid({
panelWidth : 600,
multiple: true,
loadMsg : '加载数据中...',
idField : 'id',
textField : 'user',
url : 'user.php',

fitColumns : true,
//mode : 'local',
filter: function(q, row){
var opts = $(this).combogrid('options');
return row[opts.textField].indexOf(q) >= 0;
},
columns:[[
{
field:'id',
title:'编号',
width:100,
checkbox:true,
},
{
field:'user',
title:'帐号',
width:100,
},
{
field:'email',
title:'电子邮件',
width:100,
},
{
field:'date',
title:'创建时间',
width:100,
}
]] ,
});

PS :数据表格下拉框事件完全扩展自 combo(自定义下拉框)和 datagrid(数据表格)。

 

三. 方法列表

ComboGrid( 数据表格下拉框)

$('#box').combogrid('clear');
$('#box').combogrid('setValue', 1);
$('#box').combogrid('setValues', [1,2]);

相关文章:

  • 2022-01-17
  • 2021-11-13
  • 2022-01-14
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-30
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案