懒得找,存个笔记:easyui combogrid 下拉+关键字搜索

简介: 懒得找,存个笔记:easyui combogrid 下拉+关键字搜索
var product;
$.ajax({
url: '请求数据地址',
type: "post",
async: false,
dataType: "json",
success: function (result) {
product = result;
}
});
$('#txtSalesMan').combogrid({
methord: 'post',
idField: 'UserName',
textField: 'TrueName',
panelHeight: '200',
columns: [
[
{ field: 'UserName', title: '用户名', width: 100 },
{ field: 'TrueName', title: '真实名称', width: 100 }
]
],
onChange: function (q) {
doSearch(q, product, ['UserName', 'TrueName'], $(this));
},
onShowPanel: function () {
$(this).combogrid('grid').datagrid('loadData', product);
}
});


PS:楼主邮箱 tccwpl@163.com

目录
相关文章
|
JavaScript API
jQuery EasyUI API 中文文档 - 组合表格(ComboGrid)
ComboGrid 组合表格 扩展自 $.fn.combo.defaults 和 $.fn.datagrid.defaults,用 $.fn.combogrid.defaults 重写了 defaults 。
1215 0

热门文章

最新文章