[flexcoders] CellRenderer for datagrid

2005-11-02 Thread Parekh, Shweta - BLS CTR
Hi,

I have a problem with using cellrenderer at datagrid level.  Attached is a
sample of the application which I'm using to test the cellrenderer.  If I
have the renderer at column level, mx:DataGridColumn columnName=active
width=50  cellRenderer=CellColorRenderer/, when I click on the cells
under active column, the background color of the cells change.  However,
for my case, I can't explicitly define the columns, they generate based on
the data result so I need to use a different path.  I tried to have the
renderer at datagrid level, mx:DataGrid id=employee_dg
dataProvider={department.employees.employee} editable=true
cellRenderer=CellColorRenderer, it does not work.  Please help!!!

Thanks in advance,

Shweta CellColorRenderer.mxml  department.mxml  Department.xml  
deptComp.mxml 

___
Shweta Parekh



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


CellColorRenderer.mxml
Description: Binary data


department.mxml
Description: Binary data


Department.xml
Description: Binary data


deptComp.mxml
Description: Binary data


RE: [flexcoders] CellRenderer for datagrid

2005-11-02 Thread Matt Chotin










Do you know which column should have the
cellRenderer? You can just iterate through the columns later (getColumnAt) and
assign the cellRenderer in ActionScript.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Parekh, Shweta - BLS CTR
Sent: Wednesday, November 02, 2005
8:21 AM
To: 'flexcoders@yahoogroups.com'
Cc: Dang, Charlotte - BLS
Subject: [flexcoders] CellRenderer
for datagrid





Hi,

I have a problem with using cellrenderer at
datagrid level. Attached is a
sample of the application which I'm using to test
the cellrenderer. If I
have the renderer at column level,
mx:DataGridColumn columnName=active
width=50
cellRenderer=CellColorRenderer/, when I click on the cells
under active column, the background
color of the cells change. However,
for my case, I can't explicitly define the columns,
they generate based on
the data result so I need to use a different
path. I tried to have the
renderer at datagrid level, mx:DataGrid
id=employee_dg
dataProvider={department.employees.employee}
editable=true
cellRenderer=CellColorRenderer, it
does not work. Please help!!!

Thanks in advance,

Shweta
CellColorRenderer.mxml
department.mxml Department.xml 
deptComp.mxml 

___
Shweta Parekh









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] CellRenderer for Datagrid and horizontal alignment

2005-09-28 Thread Aly Sidi



HI I have a datagrid with and ImageCellRender.mxml and it works great
but i cant seem to align the image in teh middle of a DataGridColumn

I have tried :
textAlign=Center and textIndent=xx for the DatagridColumn
I have alos tried in teh cellrenderer mx:Spacer horizontalGap=20 /
still no luck

any more ideas?








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.