Re: [flexcoders]Setting DataGrid header to transparent
Or you could skin it and with something transparent. On 23 Apr 2008, at 07:08, Alex Harui wrote: Dude, that was four months ago! You could’ve asked again sooner. Another approach may be to subclass, get the .header, getChildByName (“headerBG”) and set its alpha=0 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Tuesday, April 22, 2008 9:57 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]Setting DataGrid header to transparent I've been working on this for a while with no luck... can you provide an example or some tips? On Thu, Dec 27, 2007 at 6:53 PM, Alex Harui [EMAIL PROTECTED] wrote: Override drawHeaderBackground? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Thursday, December 27, 2007 3:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]Setting DataGrid header to transparent Is there a way to set the Datagrid header to transparent? I want to set the header background fill to transparent and show a border along the bottom of the column headers. Currently the CSS Design View does not let me change the Datagrid header fill alpha. Here is the code I am using: mx:XML id=xmlData format=e4x XML1 items item name=item 1 enabled=true column1=8:00PM / /items /XML1 /mx:XML mx:DataGrid x=10 y=71 dataProvider={xmlData.items.item} mx:columns mx:DataGridColumn headerText=Name dataField=@name/ mx:DataGridColumn headerText=Column 1 dataField=@column1/ mx:DataGridColumn headerText=Edit dataField=edit/ mx:DataGridColumn headerText=Enabled dataField=@enabled/ /mx:columns /mx:DataGrid
RE: [flexcoders]Setting DataGrid header to transparent
Dude, that was four months ago! You could've asked again sooner. Another approach may be to subclass, get the .header, getChildByName(headerBG) and set its alpha=0 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Tuesday, April 22, 2008 9:57 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]Setting DataGrid header to transparent I've been working on this for a while with no luck... can you provide an example or some tips? On Thu, Dec 27, 2007 at 6:53 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Override drawHeaderBackground? From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of dorkie dork from dorktown Sent: Thursday, December 27, 2007 3:31 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders]Setting DataGrid header to transparent Is there a way to set the Datagrid header to transparent? I want to set the header background fill to transparent and show a border along the bottom of the column headers. Currently the CSS Design View does not let me change the Datagrid header fill alpha. Here is the code I am using: mx:XML id=xmlData format=e4x XML1 items item name=item 1 enabled=true column1=8:00PM / /items /XML1 /mx:XML mx:DataGrid x=10 y=71 dataProvider={xmlData.items.item} mx:columns mx:DataGridColumn headerText=Name dataField=@name/ mx:DataGridColumn headerText=Column 1 dataField=@column1/ mx:DataGridColumn headerText=Edit dataField=edit/ mx:DataGridColumn headerText=Enabled dataField=@enabled/ /mx:columns /mx:DataGrid
Re: [flexcoders]Setting DataGrid header to transparent
Hi Judah, If you are on Flex 3 SDK, you can just use your own skin for mx:Datagrid header called headerBackgroundSkin http://livedocs.adobe.com/flex/3/langref/mx/controls/DataGrid.html#styleSummary It is only available in Flex 3 SDK, I learned it from source file of mx.controls.dataGridClasses.DataGridHeader from Flex 3 SDK. Otherwise, override protected drawHeaderBackground method for mx:Datagrid for Flex 2 SDK as described here: http://www.munkiihouse.com/?p=14 -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
Re: [flexcoders]Setting DataGrid header to transparent
I've been working on this for a while with no luck... can you provide an example or some tips? On Thu, Dec 27, 2007 at 6:53 PM, Alex Harui [EMAIL PROTECTED] wrote: Override drawHeaderBackground? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Thursday, December 27, 2007 3:31 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders]Setting DataGrid header to transparent Is there a way to set the Datagrid header to transparent? I want to set the header background fill to transparent and show a border along the bottom of the column headers. Currently the CSS Design View does not let me change the Datagrid header fill alpha. Here is the code I am using: mx:XML id=xmlData format=e4x XML1 items item name=item 1 enabled=true column1=8:00PM / /items /XML1 /mx:XML mx:DataGrid x=10 y=71 dataProvider={xmlData.items.item} mx:columns mx:DataGridColumn headerText=Name dataField=@name/ mx:DataGridColumn headerText=Column 1 dataField=@column1/ mx:DataGridColumn headerText=Edit dataField=edit/ mx:DataGridColumn headerText=Enabled dataField=@enabled/ /mx:columns /mx:DataGrid
RE: [flexcoders]Setting DataGrid header to transparent
Override drawHeaderBackground? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Thursday, December 27, 2007 3:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]Setting DataGrid header to transparent Is there a way to set the Datagrid header to transparent? I want to set the header background fill to transparent and show a border along the bottom of the column headers. Currently the CSS Design View does not let me change the Datagrid header fill alpha. Here is the code I am using: mx:XML id=xmlData format=e4x XML1 items item name=item 1 enabled=true column1=8:00PM / /items /XML1 /mx:XML mx:DataGrid x=10 y=71 dataProvider={xmlData.items.item} mx:columns mx:DataGridColumn headerText=Name dataField=@name/ mx:DataGridColumn headerText=Column 1 dataField=@column1/ mx:DataGridColumn headerText=Edit dataField=edit/ mx:DataGridColumn headerText=Enabled dataField=@enabled/ /mx:columns /mx:DataGrid