LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-03-2005, 04:50 PM
Scottae's Avatar
Scottae Scottae is offline
God Moderator
 
Join Date: Oct 2003
Location: United States
Posts: 6,532
Rep Power: 16
Scottae is on a distinguished road
Setting DataGrid header styles using CSSStyleDeclaration

I am trying to set the header styles of a data grid. I want them to be different from the style I use with the data in the grid. I look in the Flash help to see how to do it. It seems pretty straight forward:

Customizing the DataGrid component

Quote:
You can set header styles through headerStyle, which is a style property itself. To do this, you create an instance of CSSStyleDeclaration, set the appropriate properties on that instance for the header, and then assign the CSSStyleDeclaration to the headerStyle property, as shown in the following example.
Actionscript:
import mx.styles.CSSStyleDeclaration;
var headerStyles = new CSSStyleDeclaration();
headerStyles.setStyle("fontStyle", "italic");
grid.setStyle("headerStyle", headerStyles);

Now if you try something like this, you will get errors saying that there is no method with the name 'setStyle'. So I go check out mx.styles.CSSStyleDeclaration AS file and Flash is right. There is not mehod called setStyle in CSSStyleDeclaration.as. There is a getStyle method though. Is it just me or does this seem really retarded?



__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius

Blog | Shared Items
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with links using flash header and dynamic pages chipshot Newbies 0 04-07-2007 03:54 AM
setting styles for buttons [PAUL FERRIE] Actionscript 1 Components 3 12-08-2006 06:24 PM
Cached Flash, will setting the HTTP header resolve the problem? jjspoons Flash MX 1 09-02-2005 02:54 PM
DataGrid Component V2 Header Gradient Scottae Actionscript 2.0 Components 7 06-03-2005 05:41 PM
Setting dropdown indexes in Combo Box embedded in a datagrid clem_c_rock Actionscript 2.0 Components 0 03-27-2005 06:44 AM




All times are GMT. The time now is 05:52 PM.