Questions tagged [itemrenderer]

Questions pertaining to creating and using a custom ItemRenderer to display bound data in Flash constrols such as List and DataGrid.

483 questions
2
votes
2 answers

How do I remove an EventListener in an ItemRenderer?

I'm creating an actionscript custom itemRenderer, and I have: override protected function createChildren():void { super.createChildren(); addEventListener(MouseEvent.CLICK, clicked,false,0,true); } Where do I put my…
stevemcl
  • 367
  • 1
  • 3
  • 11
2
votes
1 answer

Flex 4.5: Spark DataGrid with custom ItemRenderes

Firstly sorry for the really lengthy question. I am trying to implement an Org.Chart using spark DataGrid. The data for the Org.Chart does not change and hence I am hard coding the values. I had to implement this Org.Chart as I need to have floating…
Anji
  • 725
  • 1
  • 9
  • 27
2
votes
2 answers

Setting transparency of itemrenderers in spark list

I have a list that has alternating item colors. I just simply…
David
  • 607
  • 1
  • 8
  • 12
2
votes
1 answer

ArrayCollection not updated via ItemRenderer (CheckBox) in Flex

I am having problems to update my ArrayCollection which initially populates my datagrid. In my case the dataprovider consists of True and False as String. These come from my database. I set the dataProvider of my datagrid to the ArrayCollection and…
yaya
  • 165
  • 1
  • 1
  • 8
2
votes
1 answer

Prevent selection of a particular item in spark list

I have a Spark List which has a custom itemRenderer for rendering each item in the List. I wish to prevent an item in that list from being selected (based on some custom logic) by the user. What is the best way I can achieve this? Here's how my…
Saket
  • 45,521
  • 12
  • 59
  • 79
2
votes
3 answers

Display List ItemRenderer Index in Flex3

Is there a direct way to get the item index of the data inside an itemRenderer? I need to display the item number against each item. I am currently doing a workaround and won't allow reuse of my itemRenderer component. var index:int =…
midhunhk
  • 5,560
  • 7
  • 52
  • 83
2
votes
4 answers

Adobe Flex 4.5 Spark: Binding ItemRenderer Component to Parent

In Flex 3, it used to be possible to bind a component property within an itemRenderer via outerDocument. So for instance, if there was a image inside an itemRenderer that was only displayed on a given condition of the parent, something like this…
Shawn
  • 2,406
  • 1
  • 26
  • 31
2
votes
2 answers

How to set label width inside itemrenderer for spark list in a liquid layout?

In a flex project that I have that is designed to scale 100% to the web window, I have a spark list. And I have a simple itemrenderer that takes the data and displays a name, and a message. Just think of it like a simple instant messenger display.…
brybam
  • 5,009
  • 12
  • 51
  • 93
2
votes
1 answer

How to enable tab key navigation on a datagrid where the cells are custom item renderers?

This is a snippet of code in our custom item renderer which is in actionscript: textCustomItemRendererTempForTab.tabEnabled=true; textCustomItemRendererTempForTab.focusEnabled=true; textCustomItemRendererTempForTab.setFocus(); Alert.show( "Without…
FlexNewbie
  • 21
  • 2
2
votes
2 answers

Bind variable to ItemRender component property

I would like to bind a variable from my ActionScript to a property of a component that is in a ItemRender. But I always get this error: 1120: Access of undefined property currentRoom. Here is my code
Vinzcent
  • 1,438
  • 6
  • 33
  • 59
2
votes
3 answers

How to re-render itemRenderer for a DropDownList in Flex4?

I have created a custom ComboCheck which extends the spark DropDownList that is a DropDownList of checkboxes. Inside of my itemRenderer I have the code: [Bindable]override public function set data (value:Object):void { if (value!=null) { …
Mike
  • 8,137
  • 6
  • 28
  • 46
2
votes
3 answers

My item renderer is not finding property "data."

I'm trying to create a custom button renderer for my list and it keeps saying unidentified property "data." Here is my code. Renderer:
Dennis
  • 135
  • 3
  • 8
2
votes
2 answers

Flex/AS3 Using Multiple Item Renderers In a List

I'm trying to have multiple item renderers in a list, as I have several different types of objects that I want to display. I tried creating a new class that extends ListBase, and adding override public function createItemRenderer with my code within…
Heather Roberts
  • 1,978
  • 1
  • 24
  • 33
2
votes
5 answers

How to pass events between an Itemrenderer and its parent

I have a spark list control whose data is rendered using an itemrenderer. Basically the Item renderer lays out the data within a Panel. The Panel has a LinkButton, which when clicked needs to pass an Id to the parent application. In the parent…
Lin
  • 273
  • 4
  • 21
2
votes
2 answers

Problem getting tooltip to refresh properly on an itemrenderer in Flex

I'm having the following problem. I have an ArrayCollection that's acting as the data provider for a tilelist (called favoriteLinksList) I use an itemRenderer called FavoriteItem as the tilelist's itemRenderer. This FavoriteItem looks like…
the_new_mr
  • 3,476
  • 5
  • 42
  • 57
1 2
3
32 33