itemrenderer

Flex custom item renderer for the displayed item in the combobox

I am using a custom item renderer in a combobox to display a custom drawing instead of the default text label. This works fine for the dropdown list but the displayed item ( when the list is closed) is still the textual representation of my object. Is there a way to have the displayed item rendered the same way as the one in the dropdo...

Flex dataGrid itemRenderer, access cell width and height

When writing a custom itemRenderer, how do you reference the height and width of the grid cell that it will be rendered in? In such a way that it will resize correctly when the grid is resized. I am writing a dataGrid itemRenderer that draws a bar graph in the final column of a table. I have tried referencing 'this', 'this.parent', an...

How do I change the State in an itemRenderer based on an action in another itemRenderer?

I have a DataGridColumn with an ItemRenderer that extends the Box component. The default display is a Text component. When the user clicks on the text component, I change the State to add a PopUpMenuButton child, and make the Text component invisible. This works fine. However, I only want to allow one PopUpMenuButton to be visible in the...

RadioButton in 1st row of DataGrid causing problems - Adobe Flex

I have a DataGrid with RadioButtons in one column using itemRenderer. The DataGrid resides on a TitleWindow which is created and popped-up everytime the user clicks a button. The dataProvider for the DataGrid is an ArrayCollection, and the RadioButtons are selected or not based on a boolean value in each ArrayCollection item when the win...

Fit Flex datagrid to data

I have rows of text data that can vary between 0 and 100, and all need to be visible on the screen at one time. The default behavior is fine for the grid until the rows * rowHeight > gridHeight. Basically I need a hook into the item height, or row height to calculate it based on the height of the grid. I've set paddingTop and paddingB...

Weird ItemRenderer behavior

I have a really odd issue with an ItemRenderer. I have a main.mxml container with a ViewStack. When a user logs in, the initial view contains an AdvancedDataGrid--containing some data and the ItemRenderer below--which simply displays a Delete button. When the user logs in, this AdvancedDataGrid is automatically refreshed from the databas...

Flex - Sending a parameter to a custom ItemRenderer?

Hello all, What I am trying to accomplish to to get financial data in my Flex Datagrid to be color-coded--green if it's positive; red if it's negative. This would be fairly straightforward if the column I want colored was part of the dataProvider. Instead, I am calculating it based on two other columns that are part of the dataProvide...

flex 3 and itemRenderers

Hi , i have a datagrid and for one of the columns im using an item renderer to display content. Im wondering is it possible to access the dataprovider content of the datagrid inside a script block in the itemRenderer. Currently I can access the dataprovider in a component in the item renderer using data.variableName. I want to be able...

How do I stop a datagrid's first-row itemRenderer from instantiating/adding/initializing/etc twice?

In a Flex DataGrid's first row, the itemRenderer will initialize twice. Tracing the results reveals that the flex framework is possibly creating two instances of the first row's itemRenderer. In a more complex application, where the itemRenderer contains a data-bound ColorPicker, we're seeing an infinite loop occur because of this prob...

Set Label width in an itemRenderer - FLEX

Hi, I am creating a Label in a Datagrid itemRenderer(extended from UIComponent) and right now I am setting the width of the label to some static value. I would like to create the label with 100% width. I do not want to use unScaledWidth because I am using link for the label so the link will be visible in the entire cell. Thanks for the...

How do I add a button after the last item in a List in Flex?

I have a HorizontalList in Flex that contains some data and an ItemRenderer representing a Page. After the last item (Page) in the list, I want to have a button - a Plus to create a new page. What data can I look at to get the proper x,y position of the last ItemRenderer? I'm getting the position of this.listContent.listItems[this.list...

Flex3: Custom Item Renderer does not listen to events dispatched by parent

I have a List with a custom ItemRenderer. The ItemRenderer contains a Checkbox and a Label. The component with the List has a 'select all' checkbox. When the 'select all' checkbox is checked, it dispatches an event that each item should listen to in order to select its own checkbox. The eventlistener is added on creationComplete of each ...

Flex: is there a way to put TileList highlight "over" itemRenderer?

My item renderer is an image, and the highlight for the selected item is under the image so you cannot see the highlight, is there a way to make the highlight "over" the image? Thanks. ...

Flex ItemRenderer prevents use of tabbing between text inputs

I have a custom ItemRenderer that displays 5 text inputs in each of 3 panels: <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" height="300" width="800" creationComplete="onCreationComplete()" > <!-- code-behind --> <mx:Script source="ChainListRenderer.mxml.as" /> <mx...

possible to display an arrayCollection of Sprites in a List component?

I have an arrayCollection of objects that extend Sprite, and have bitmaps within them. I want to display these in a list (or some other component that would allow a user to scroll through them, and see their associated data.) When I do: myList.dataProvider = myArrayCollection the list just shows a bunch of lines of [Object, Item] inst...

Flex ItemRenderer as a field of `data`?

I would like to let the data provided to a DataGrid decide how best it should be rendered (that is, let the data carry with it an object which will do the rendering). For example, by creating a "Renderable" interface, which has a 'renderer:IFactory' property, then used as below: <mx:DataGrid x="0" y="0" width="100%" dataProvider="{myDa...

How flex itemRenderer works ? (their life cycle)

By works, i mean : how item renderer are instanciate , call , destroy... what is theire life cycle ? I had some display bugs, and this link open my mind to the problem http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&amp;file=cellrenderer_072_14.html ( the doc is the same for f...

Reordering of item in TileList with dataChangeEffect does not work as expected.

I currently have a TileList with a custom itemRenderer based on a VBox. I have bound the DefaultTileListEffect to the itemChangeEffect property on my TileList. However, I've run into a weird problem when I drag an item to a new location in the TileList. When going through the sequence of events (in this case, FadeOut, Move, FadeIn) th...

WPF: How do I perform custom rendering of items in List or Grid?

With Adobe Flex I would create a custom ItemRenderer to change the display of items in a grid. This executes some code that overrides how the grid control renders items. How do I do this with WPF? What are the performance implications with the techniques available? My initial aim is to display an icon, a title, and a description. Ideall...

How to prevent Datagrid from reusing itemRenderers?

Is it possible to not to reuse the itemrenderers on scroll in a datagrid. Instead on scroll datagrid should create the new instances of the itemrenderers? ...