Threaded View

    You found a bug! We've classified it as EXTJS-8168 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jan 2013
    Vote Rating
    imc-pp is on a distinguished road


    Default disable grouping feature does not disable column menu "group by this field"

    Ext version tested:

    Browser versions tested against:


    Defining a grid panel and a store like this

    var localStore = Ext.create('', {
        name: 'localStore',
        fields: ['name', 'data', 'skill'],
        data: [
    { 'name': 'metric one',   'data': 10, 'skill':'skill3' },
            { 'name': 'metric two',   'data':  7, 'skill':'skill3' },
            { 'name': 'metric three', 'data':  5, 'skill':'skill3' },
            { 'name': 'metric four',  'data':  2, 'skill':'skill2' },
            { 'name': 'metric five',  'data': 27, 'skill':'skill1' }
    var sampleGrid = Ext.create('Ext.grid.Panel', {
        title: 'Sample store',
        store: localStore,
        width: 700,
        height: 700,
        features: [
            Ext.create('Ext.grid.feature.GroupingSummary', {
                id: 'groupSummary',
                groupHeaderTpl: '{name} ({rows.length})'
        columns: [
    { text: 'name',  dataIndex: 'data', width:300},
    { text: 'skill',  dataIndex: 'skill' }
        height: 200,
        width: 400,
        renderTo: Ext.getBody()
    I would assume that

    will disable the grouping feature AND disable the grouping-column Menu ("group by this field")

    However even after using the "disable" method on the feature, the column menu in the grid panel can still be clicked by the user. Thus "disabling" the grouping feature is only possible by iterating over all configured columns and set the "groupable" property to "false"

    for (var i in sampleGrid.columns) {
                console.log("disable groupable on column" + sampleGrid.columns[i].dataIndex);
                sampleGrid.columns[i].groupable = false;
    This will then also disable the column menu "Group by this field".
    However I would assume that using the
    I can achieve the same effect without the need to iterate over all defined columns.
    Last edited by imc-pp; 7 Jan 2013 at 5:29 AM. Reason: corrected test case

Thread Participants: 1

Tags for this Thread