Easyui combogrid添加toolbar

近一段时间一直在作Easyui的一个项目。官方的资料 API有些不全,把本身遇到的解决的问题发出来但愿能帮助到你们。post

combogrid这个控件绑定了一个DataGrid,API也没有说能够绑定ToolBar。很少说。。直接上代码
<select class="easyui-combogrid" style="width: 134px" name="txtDogCode" data-options=" required:true,
panelWidth: 430,
toolbar:'#toolbar',
idField: 'DogCode',
textField: 'DogCode',
url: 'DogInfo.ashx?action=GetDogStock',
pagination: true,//是否分页
rownumbers: true,//序号
pageSize: 10,//每页显示的记录条数,默认为10
pageList: [10],//能够设置每页记录条数的列表
method: 'post',
columns: [[
{ field: 'DogCode', title: '编号', width: 100, align: 'center' },
{ field: 'DogTypeName', title: '狗类型', width: 100, align: 'center' }
]],
fitColumns: true">ui

相关文章
相关标签/搜索