[CLOSED] Event Handler for click on "Group By this Field"?

  1. #1

    [CLOSED] Event Handler for click on "Group By this Field"?

    Hi support,

    We need event handler at grid panel ,
    When we click on the "Group By this field " at grouping of grid panel.
    Please check attachment for better understanding.

    Thank You,
    Click image for larger version. 

Name:	items list question.jpg 
Views:	5 
Size:	109.3 KB 
ID:	25036
    Last edited by fabricio.murta; Dec 01, 2017 at 5:57 PM.
  2. #2
    Hello @iansrilley!

    There's no specific event (not exported as an event at least) to customize the grid header menu entry click.

    You can use the store's groupChange event to trigger an action not only when the menu entry is hit, but anytime the grouping is changed.

    But if you need it to be exclusively triggered when the menu entry is chosen, and don't have a pattern to test the groupChange event above, you then would need to tamper in the feature and add your own code, calling the original code either before or after your custom code execution. Something like this:

    Ext.define('Ext.grid.feature.Grouping', {
        override: 'Ext.grid.feature.Grouping',
        onGroupMenuItemClick: function (menuItem, e) {
            var me = this;
    
            me.callParent(arguments);
    
            console.log("Menu item click.");
        }
    });
    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello @iansriley!

    It's been a while since we replied your inquiry here and still no feedback from you. Did the response above help at all? Do you still need help with this issue? Please let us know so we can further help you.

    We may mark this thread as closed if you do not reply in 7+ days from now, but that's not going to prevent you from posting follow-ups here when you feel fit.

    We're looking forward to your feedback!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] "GetRowClass" Handler Returns "rowParams" null
    By cleve in forum 2.x Premium Help
    Replies: 7
    Last Post: Sep 12, 2013, 9:32 PM
  2. Replies: 6
    Last Post: May 31, 2013, 3:04 AM
  3. Replies: 2
    Last Post: May 05, 2013, 3:52 AM
  4. Replies: 0
    Last Post: Apr 26, 2013, 10:43 AM
  5. Disabling "Group By This Field" menu
    By obroc17 in forum 1.x Help
    Replies: 1
    Last Post: May 28, 2012, 2:05 AM

Posting Permissions