开发者

Flex. ROLL-OVER color in advanced data grid header

开发者 https://www.devze.com 2023-03-27 01:04 出处:网络
How can I change the rollover color of AdvancedDataGrid \'s header? It\'s light-blue by default. I tried using a HeaderRenderer, but it does not help. There is a 2 pixel color border on the top and b

How can I change the rollover color of AdvancedDataGrid 's header? It's light-blue by default.

I tried using a HeaderRenderer, but it does not help. There is a 2 pixel color border on the top and bottom of the header that I开发者_StackOverflow can't control.

Thanks Vladimir


  1. Set rollOverColor that is used in header:

    <mx:AdvancedDataGrid rollOverColor="0xFFCC00"/>

  2. Create a subclass of AdvancedDataGridHeaderRenderer and override updateDisplayList() to add the required visual logic to use it as headerRenderer.

P.S: AdvancedDataGridHeaderRenderer source code is available by pressing Ctrl + Shift + T in Flash Builder and typing the class name.


Check http://jcraane.blogspot.com/2009/10/flex-how-to-create-different-rollover.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号