This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Flex and the fly likes how to add two itemrenders to advanced data grid column Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Flex
Bookmark "how to add two itemrenders to advanced data grid column" Watch "how to add two itemrenders to advanced data grid column" New topic
Author

how to add two itemrenders to advanced data grid column

Ashwin Raghavan
Ranch Hand

Joined: Dec 26, 2012
Posts: 30
Hi

I have an Advanced data grid.
<mx:AdvancedDataGrid dataProvider="{new HierarchicalData(xml)}" >
<mx:columns>
<mx:AdvancedDataGridColumn dataField="@someField">
<mx:itemRenderer>
<fx:Component>
<mx:Label htmlText="{data.@someField}" />
</fx:Component>
<mx:itemRenderer>
</mx:AdvancedDataGridColumn>
</mx:columns>
</mx:AdvancedDataGrid>

Now i want to add colors to this column. Is it possible that i use another item renderer to do that. I tried adding item renderer to this column but it is erroring out. I do not want to use style functino as it the dataprovider is huge and it slows down the screen when i scrol up and down.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to add two itemrenders to advanced data grid column
 
jQuery in Action, 3rd edition