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

  • SEARCH
  • Home
  • 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 912783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:26:41+00:00 2026-05-15T17:26:41+00:00

This page describes how to override the drawHighlightIndicator/drawSelectionIndicators methods for the header of a

  • 0

This page describes how to override the drawHighlightIndicator/drawSelectionIndicators methods for the header of a DataGrid, but an AdvancedDataGrid does not have “headerClass” in mx_internal. It instead has an headerRenderer.

How can I remove those blasted highlights over an AdvancedDataGrid in Flex 3?

  • 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-05-15T17:26:42+00:00Added an answer on May 15, 2026 at 5:26 pm

    The graphics calls that draw that are in AdvancedDataGridBaseEx.as from lines 5468-5471:

    var g:Graphics = s.graphics;
    g.clear();
    g.beginFill(getStyle("rollOverColor")); //all I really wanted was to decrease the alpha here :(
    g.drawRect(0, 0, w, h - 0.5);
    g.endFill();
    

    To get rid of this you can do this in an class that extends AdvancedDataGrid:

    package
    {
        import flash.display.Sprite;
        import flash.events.MouseEvent;
    
        import mx.controls.AdvancedDataGrid;
    
        public class AdvancedDataGridMinusHighlights extends AdvancedDataGrid
        {
            public function AdvancedDataGridMinusHighlights()
            {
                super();
            }
    
            override protected function mouseOverHandler(event:MouseEvent):void
            {
                super.mouseOverHandler(event);
    
                var s:Sprite = Sprite(
                    selectionLayer.getChildByName("headerSelection"));
    
                if(s) s.graphics.clear();
    
            }
    
            override protected function mouseDownHandler(event:MouseEvent):void
            {
                super.mouseDownHandler(event);
    
                var s:Sprite = Sprite(
                    selectionLayer.getChildByName("headerSelection"));
    
                if(s) s.graphics.clear();
            }
    
        }
    }
    

    Although that is an extremely inelegant solution since all it does is clear what has already been drawn. Because there’s so much other crap in the mouse handlers in AdvancedDataGridBaseEx you won’t easily be able to customize the appearance of the header.

    A slightly more elegant (hack) solution is to copy the full source of AdvancedDataGridBaseEx into the mx.controls package (a hack I’m sure many of you are aware of and equally aware of the consequences).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This page should display a Google ad. I Tried everything but it's not working.
I have a describe block like this: describe Documents do subject { page }
This page indicates that TabPage has a GotFocus event, but in Visual Studio 2008
This page says to use: var object = $.extend({}, object1, object2); But I prefer
Using this page, http://developer.android.com/sdk/compatibility-library.html , I have installed the Android Support Package, added a
This page describes an 'IN' operator that can be used in GAE Datastore to
In a code i have seen this creation of token for a login page:
In wxWiki i found this page http://wiki.wxwidgets.org/Converting_everything_to_and_from_wxString . It describes how to convert int
This page: http://blog.ostermiller.org/convert-java-outputstream-inputstream describes how to create an InputStream from OutputStream: new ByteArrayInputStream(out.toByteArray()) Other
On this page: http://developers.facebook.com/docs/opengraph/using-app-tokens/ It describes how to get the app access token, yet

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.