The renderers width is fixed to the width of the column.  Are you
looking for something like the centered checkbox example from my blog
(blogs.adobe.com/aharui)

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of luoxuanhuayelin
Sent: Friday, November 23, 2007 1:56 AM
To: [email protected]
Subject: [flexcoders] itemRenderer's width and color is not changed.
why?

 


<mx:DataGridColumn width="48" headerText="ADD" editable="false">
<mx:itemRenderer>
<mx:Component>
<mx:Button label="add" color="#0000FF" width="20" 
click="AddItem()">
</mx:Button> 
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>

I have setted the color="#0000FF" width="20" ,but not changed in 
explorer? the width of Button is still 48, How can do?

 

Reply via email to