-
29 Jun 2012 9:50 AM #1
Ext.grid.feature.GroupingView enable/disable bug
Ext.grid.feature.GroupingView enable/disable bug
There is a BUG with calling enable() or disable() methods when enableGroupingMenu=false
Uncaught TypeError: Cannot call method 'setChecked' of null
Code:disable: function() { var me = this, view = me.view, store = view.store, remote = store.remoteGroup, groupToggleMenuItem, lastGroup; lastGroup = store.groupers.first(); if (lastGroup) { me.lastGroupIndex = lastGroup.property; me.block(); store.clearGrouping(); me.unblock(); } me.callParent(); groupToggleMenuItem = me.view.headerCt.getMenu().down('#groupToggleMenuItem'); groupToggleMenuItem.setChecked(true, true); <--Uncaught TypeError: Cannot call method 'setChecked' of null groupToggleMenuItem.setChecked(false, true); if (!remote) { view.refresh(); } },
Variable "groupToggleMenuItem" is null when enableGroupingMenu=false. Should be checked before call setChecked
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-6691
in
4.1.2.


Reply With Quote