[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-17 Thread whatabrain
I mean sortExpertMode=true. :) False is the default. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Another detail -- putting the skin on the first subclass of ADG fixes the problem with verticalGridLines and alternatingItemColors, but it still breaks

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-17 Thread whatabrain
Oh, never mind that sortExpertMode bit. It looks like it was working fine. I just didn't realize that the only visual difference between true and false is the horizontal line before the 1. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Another detail -- putting the

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
Yeah, I think your could subclass it and override updateDisplayList for what you're needing. Check this out and see if it does what you need: package nes { import mx.controls.advancedDataGridClasses.AdvancedDataGridHeaderRenderer; public class AdvancedDataGridHeaderRendererExt extends

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
That's a little closer than what I was trying (adding a Shape to the list of children), but it still has one problem: The column separator pixels break up the line. --- In flexcoders@yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: Yeah, I think your could subclass it and override

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
I THINK I know what you're talking about. You mean the grey line that separates each column, right? What you're wanting is a line that goes all the way from the bottom-left of the first column header to the bottom-right of the last column header, right? If not, please post a doctored screenshot

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
Thanks. That's exactly what I was looking for, and it fixed my problem. However, overriding the skin also overrode lots of ADG settings, like verticalGridLines, alternatingItemColors and sortExpertMode. Is there any way to avoid that? --- In flexcoders@yahoogroups.com, Pan Troglodytes

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
Did you override just the headerSeparatorSkin, or go farther? On Tue, Sep 16, 2008 at 2:29 PM, whatabrain [EMAIL PROTECTED] wrote: Thanks. That's exactly what I was looking for, and it fixed my problem. However, overriding the skin also overrode lots of ADG settings, like

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
While trying to answer your question, I found out what was causing the problem, but I'm still not sure why. I have a class called StandardTreeGrid, which subclasses ADG. It's in StandardTreeGrid that I override things like verticalGridLines. Now if I override headerSeparatorSkin in

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pedro Sena
Probably because that are a few protected attributes that become private when you subclass StandardTreeGrid instead of direct subclassing ADG. I´m not sure if this is the case, but you should take a look at this. Hope this helps On Tue, Sep 16, 2008 at 5:24 PM, whatabrain [EMAIL PROTECTED]

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
I might have to see some code before I can figure it out. But out of curiosity, when you say you override headerSeparatorSkin, do you mean you just do something like: mx:StandardTreeGrid headerSeparatorSkin=MyHeaderSeparatorSkinClass or are you talking about doing something in the actual

Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pan Troglodytes
This intrigues me, Pedro. Could you expand a bit more and/or give examples? Even if this is unrelated to the problem here, I'm interested in it to expand my Flex knowledge. On Tue, Sep 16, 2008 at 3:31 PM, Pedro Sena [EMAIL PROTECTED] wrote: Probably because that are a few protected

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
Yes, that's what I meant. And it looks like it's even more specific. If I put the skin on the bottom-level class (the one that subclasses ADG) or the actual instance of the grid, it works fine. There's only a problem when the skin is in the middle class. Here's a minimal piece of code which

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread whatabrain
Another detail -- putting the skin on the first subclass of ADG fixes the problem with verticalGridLines and alternatingItemColors, but it still breaks sortExpertMode=false. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Yes, that's what I meant. And it looks

[flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-15 Thread whatabrain
Thanks! That fixed most of my problems, and could fix my sort arrow problem when I get to it. But I'm having an absurd amount of trouble drawing a thick horizontal line under the headers. The best I could do was add a Shape object to the display list in the header renderer, but that had gaps