Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 03:06
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  V2 Components (Flash MX 2004 - Flash 8) (Moderators: vesa kortelainen, Ronald Wernecke, Jorge Solis, ..:: Mazhar Hasan ::.., papachan)
| | |-+  i apologize but another common datagrid question
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: i apologize but another common datagrid question  (Read 946 times)
Todd
Server what's that
*
Posts: 2



View Profile Email
« on: 11/05/04, 22:46 »

I just started using the remoting connector, awsome by the way, all is well except i just can not seem to get some header functions to work. specificaly headerText. I have searched this board for 3 days, i tried everything suggested and just searched through code others have posted on the board and just cant get it to work . I am doing all the scripting in an .as file. I have posted the code below. its just a few lines.

import mx.styles.CSSStyleDeclaration
import mx.controls.gridclasses.DataGridColumn;
subGrid_dg.hScrollPolicy = "on"

var styleHeader = new CSSStyleDeclaration();

styleHeader.fontsize = "12";
styleHeader.fontWeight = "bold";
styleHeader.color = 0xFFFFFF;
subGrid_dg.setStyle("headerStyle", styleHeader);
subGrid_dg.setStyle("headerColor", 0x000000);

subGrid_dg.setStyle("fontSize", 10);
subGrid_dg.setStyle("alternatingRowColors", [0xcccccc, 0xFFFFFF]);

subGrid.getColumnAt(0).headerText = "Title";

          /////////i have tried this al well\\\\\\\\\\\
         //var column1:mx.controls.gridclasses.DataGridColumn = getColumnAt(0);
        //column1.headerText = "Title";

con1_con.trigger()

Please help me.
Thank you.
Logged
Todd
Server what's that
*
Posts: 2



View Profile Email
« Reply #1 on: 11/05/04, 23:01 »

Well i dug some more and found this.
//////////////////////////////////////////////////////////////
Import the column class and add manually the columns. Check the Cellrenderer tutorial where I use this technique http://www.flash-db.com/Tutorials/cellrenderer/

Jorge  
 

--------------------------------------------------------------------------------
Good questions helps in good answers.
//////////////////////////////////////////////////////////////

Jorge, you did it again.
Thanks. Smiley
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!