//全选反选修复
var fixGridSelectAll = function(grid) {var sm = grid.getSelectionModel();var store = grid.getStore();sm.addListener("selectionchange", function(thiz) {var hd = grid.getEl().select('div.x-grid3-hd-checker').parent().first();if(!hd) {return;} if (store.getCount()>0 && store.getCount() == thiz.getCount()) {hd.addClass('x-grid3-hd-checker-on');} else {hd.removeClass('x-grid3-hd-checker-on');}});};
Ext.grid.GridPanel.override({onRender: Ext.grid.GridPanel.prototype.onRender.createInterceptor(function(){fixGridSelectAll(this);})});
详细解决方案
ext2.2全选反辅修复
热度:118 发布时间:2012-09-23 10:28:11.0
相关解决方案