Results 1 to 4 of 4

Thread: Locked grouped grid doesn't respect 'lockable' attribute of column

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,049
    Vote Rating
    183
      0  

    Default Locked grouped grid doesn't respect 'lockable' attribute of column

    http://fiestadev.bryntum.com/#252-gr...able-attribute

    Defining a column like this should not show the lock/unlock options.

    Code:
            { text: '1', dataIndex: '1', locked : true, lockable : false },
    https://fiddle.sencha.com/#fiddle/13s
    Last edited by Gary Schlosberg; 22 Oct 2013 at 12:54 PM. Reason: Added test fiddle

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,816
    Vote Rating
    260
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,049
    Vote Rating
    183
      0  

    Default

    BUMP, still open as of 6.0.2, please reopen

  4. #4
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,049
    Vote Rating
    183
      0  

    Default

    This does it for Grouping feature.

    Code:
    injectGroupingMenu: function() {
            var me = this,
                headerCt = me.view.headerCt;
            headerCt.showMenuBy = Ext.Function.createInterceptor(headerCt.showMenuBy, me.showMenuBy);
            headerCt.getMenuItems = me.getMenuItems();
        },
    
        showMenuBy: function(clickEvent, t, header) {
            var me = this,
                menu = me.getMenu(),
                groupMenuItem = menu.down('#groupMenuItem'),
                groupMenuMeth = header.groupable === false || !header.dataIndex || me.view.headerCt.getVisibleGridColumns().length < 2 ? 'disable' : 'enable',
                groupToggleMenuItem = menu.down('#groupToggleMenuItem'),
                isGrouped = me.grid.getStore().isGrouped();
            groupMenuItem[groupMenuMeth]();
            if (groupToggleMenuItem) {
                groupToggleMenuItem.setChecked(isGrouped, true);
                groupToggleMenuItem[isGrouped ? 'enable' : 'disable']();
            }
        }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •