extjs 怎么实现多选下拉框的全选功能

                                                xtype : "combo",
                                                margin : '5 0 0 0',
                                                readOnly : false,
                                                editable : false,
                                                mode : 'local',
                                                multiSelect:true,
                                                emptyText : '请选择',
                                                valueField : 'enumCode',
                                                displayField : 'enumMeaning',
                                                triggerAction : 'all',
                                                store : domainInfoStore,
                                                id : 'domainId',
                                                width : 150

现在我想在这代码的基础上对其添加全选功能

自己扩展combobox插件罗。。。不想扩展就用一个checkbox来替代,给checkbox添加onclick事件,全选就遍历combobox的store,循环调用combobox的select方法选中给记录

 cb.getStore().each(function(r){
cb.select(r)
})