itemrenderer

Flex list control itemrenderer issue

Hi Guys I am working on a small photo Gallery. I create a xml file and try to link it to my List control with itemrenderer. However, when I tried to save the file, I got access of undefined property "data" error. I thought we are suppose to use "data" to refer the current row of the data object. Here is my code...and thanks a lot! <?x...

Flex 4 itemRendererFunction problem.

This is a Flex 4 application: I have created a list as the following: <s:List id="previewList" horizontalCenter="14" verticalCenter="-112" itemRendererFunction="listItemRendererFunction" click="controller.previewListClickHandler()"> </s:List> And I have the itemRendererFunction: p...

Customize datagrid to show connectivity between tasks

Hey all, I have made a program in Flex for creating simple schedules, similar to MS Project or Vico Control. I have one problem that I would like to solve. (You can see it here: OnTime Project Scheduling tool made in Flex The tasks of the schedule are represented as Gantt Chart, for which I created a itemRenderer inside one of the rows...

Flex List ItemRenderer with image looses BitmapData when scrolling

Hi i have a mx:List with a DataProvider. This data Provider is a ArrayCollection if FotoItems public class FotoItem extends EventDispatcher { [Bindable] public var data:Bitmap; [Bindable] public var id:int; [Bindable] public var duration:Number; public function FotoItem(data:Bitmap, id:int, duration:Number, ...

Flex : Adding a click handler on SkinnableDataContainer's items

Hi, I am new to Flex. What I am looking for here is adding a click handler on all the items created by a SkinnableDataContainer. I tried several things that didn't work, and I have no idea what is the right way to do it. <s:SkinnableDataContainer id="teamList" itemRenderer="TeamSummaryRenderer"> <s:dataPr...

Help with creating a custom ItemRenderer for Flex 4

I'm trying to create a custom ItemRenderer for a TileList in Flex 4. Here's my renderer: <?xml version="1.0" encoding="utf-8"?> <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" autoDrawBackgro...

Starting with an empty dataProvider for a <List>

I'm using a List which I need to be empty at the start. I'm adding items to it as needed by clicking a button. Since it's empty, I haven't added a dataProvider property <s:List id="thelist" itemRenderer="listIR" /> To add an item, I'm adding it to the dataProvider directly thelist.dataProvider.addItem() but when I do that, it gives...

Flex Can't interact with button in itemrenderer

I have a list with a itemrenderer. When I put a button in the itemrenderer I can not interact with it. If I rollover the button the list item rollover is triggered but not the button's rollover. I can't click on the button either. You can see below I have a click event set in the itemrenderer and it is not called on click when I run ...

Checkbox Images in List

It seems like it should be a simple concept. I need a vertical list. This list has an image with a checkbox and pathname of that image underneath it. The user should be able to check the checkboxes of the images they want to appear in their "shopping cart". The images, checkbox label, and list are populated by an XmlList. How can I do th...

Datagrid Image Item Renderer

I'm trying to add an Image to a datagrid row, but I cant get anything to show. I'm datagrid dataprovider is an xml file. If tried incorporating the item render inline as will as definining it in another file, and still now joy. <mx:DataGrid id="nodeGrid" dataProvider="{nodes}" creationComplete="datagridChange()" dataChange="data...

Item Renderer having trouble updating

I have a list ItemRenderer that has 2 states. When it initializes, I set it to 1 state and listen for an event that switches it to state 2. protected function onCreationComplete(event:FlexEvent):void{ currentState = "state1"; addEventListener(CustomEvent.Event1, switcherfunc); } protected function switcherfunc(event:FlexEvent):vo...

How can I force a tree itemrenderer to redraw during a drag and drop operation?

I have a tree control with a custom item renderer. The item renderer has different states that should be set while an item is being dragged over the item renderer. I understand from reading this post http://forums.adobe.com/message/2091088 that the 'right way' to do this is to override the 'getCurrentState' method and append some text. I...

Adobe Flex Combobox as itemrenderer

I have a flex combobox as a datagrid itemEditor. However, after selecting an item in the combobox, its necessary to click out of the combo (i.e. into another cell or elsewhere in the app) for the value to be committed to the combo. Prior to this, the combo sits 'proud' of the datagrid and the value hasnt actually been committed. Is the...

How to set variable size for List control item in Flex?

The following code display a list of comments using List control. The item height set to a fixed value (150), so it seems working: if the content is too long, the scrollbar shows... However, what I really want is not to set the height but let it to change according to the content size. Is there any way to accomplish this? <mx:...

How can I change the state of the itemRenderer of one member of a flex 4 spark data group?

I have a "step indicator" made out of a DataGroup: <s:DataGroup id="stepNumbers" itemRenderer="stepNumberRenderer" horizontalCenter="0"> <s:layout> <s:HorizontalLayout verticalAlign="middle"/> </s:layout> </s:DataGroup> where the dataprovider is 1,2,3,4,5. The item renderer has 2 states, "normal" and "active". Within Actionscript, I...

flex 4 list ItemRenderer: how can i have different itemrenderers for different rows ?

Hiya. I'm creating a list of scores for a game. now most of the list i need to have the same ItemRenderer. but in one specific row of the list where the user who's playing is listed, it should show different information and with different background color. how can i achieve this ? update I already tried to resolve the issue with state...

Event Handling from a custom ItemRenderer event in a DataGroup

I have a MXML application with a DataGroup as follows: <s:DataGroup id="productSelector" dataProvider="{products}" itemRenderer="renderers.ProductLineupRenderer" > <s:layout> <s:HorizontalLayout/> </s:layout> </s:DataGroup> I want to know when items in my itemRenderer are manipula...

using an image item render in a flex data grid

I'm attempting to add an image to a datagrid item render dynamically in flex. Here is my DataGrid code The value of "str" in the getImagePath function is correct. <?xml version="1.0" encoding="utf-8"?> <mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml" doubleClickEnabled="true"> <mx:Script> <![CDATA[ ...

Flex ArgumentError: Error #2025 in ItemRenderer

Hi all, I've got a problem in an ItemRenderer in Flex 3.5. I've looked at the other posts regarding this error but still can't figure it out. The ItemRenderer is part of an AdvancedDataGrid who's data provider is HierarchicalData. I'm getting the ArgumentError but the trace doesn't go to any of my code. I've gone through in debug mod...

how can we access a component within an itemRenderer from the main mxml?

I have an itemRenderer for a list where I'm just displaying items and their details respectively. I want to keep the details invisible and have a button,Show Details, in my main mxml file which when clicked would make the details visible. So, my problem is in the clickHandler how can I access the details property within the itemRenderer...