Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8329377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:45:50+00:00 2026-06-09T01:45:50+00:00

I want to create a mouseenter / mouseleave state for hovering over group headers.

  • 0

I want to create a mouseenter / mouseleave state for hovering over group headers. There doesn’t seem to be any hover events being thrown within the Ext.grid.feature.Grouping class.

Grouping Header

  • Mouse enter, of the grouping header, would change the ^ to white
  • Mouse leave, of the grouping header, would change the ^ back to #999

Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:45:51+00:00Added an answer on June 9, 2026 at 1:45 am

    I couldn’t figure out a solution to delegate to the mouseenter / mouseleave events properly using ExtJS terrible event binding.

    Additionally, I couldn’t figure out how to component query / query the grid.feature.Grouping feature itself.

    However, I did figure out how to add delegation listeners to the mouseover / mouseout events. Kind of ugly that you have to wait to the render event to get the components element first. Then you have to bind using this.mon (terribly named) to addManagedListener on a delegated element.

    Ext.create('Ext.grid.Panel', {
        // ...
        listeners: {
            render: function (cmp, eOpts) {
                this.mon(cmp.el, 'mouseover', function (event, html, eOpts) {
                var class_names = this.getGroupClassNamesWithoutOver(html);
    
                class_names.push('x-over');
                html.className = class_names.join(' ');
            }, cmp, {
                delegate: '.x-grid-group-hd'
            });
    
            this.mon(cmp.el, 'mouseout', function (event, html, eOpts) {
                var class_names = this.getGroupClassNamesWithoutOver(html);
    
                html.className = class_names.join(' ');
            }, cmp, {
                delegate: '.x-grid-group-hd'
            });
        },
    
        getGroupClassNamesWithoutOver: function (html) {
            var class_names = html.className.split(' '),
                class_names_length = class_names.length,
                new_class_names = [];
    
            while (class_names_length--) {
                var class_name = class_names[class_names_length];
    
                if (class_name != 'x-over') {
                    new_class_names.push(class_name);
                }
            }
    
            return new_class_names;
        }
    });
    

    This solution is much cleaner that using the super nested, non scoped version:

    listeners: {
        el: {
            mouseover: {
                delegate: '.x-grid-group-hd',
                fn: function (event, html, eOpts) {
                    // ...
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an .on() method using events-map. I want to change this:
I want to add MouseOver and MouseLeave events to dynamical created panels in a
I want to create a super simple set of handlers for the hover() shortcut
I want create listview without layout_height. I mean if there is 100 item in
I want create object from Canvas3D class(in java) but my Compiler doesn't have this
I want create some simple animation for my program. There is 4 invisible button,
i want create multiple search where statement $where_search is a multiple condition from post
I want create wordpress website into which I want create user management... That means
i want create a custom json data from the mssql 2008 results so that
I want create an application with animate button? how can i do? after click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.