Easyui combogrid添加toolbar

近一段时间一直在做Easyui的一个项目。官方的资料 API有些不全,把自己遇到的解决的问题发出来希望能帮助到大家。

combogrid这个控件绑定了一个DataGrid,API也没有说可以绑定ToolBar。不多说。。直接上代码
<select class="easyui-combogrid" style=" 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: '编号', 100, align: 'center' },
{ field: 'DogTypeName', title: '狗类型', 100, align: 'center' }
]],
fitColumns: true">

原文地址:https://www.cnblogs.com/cxy521/p/3578227.html