itemrenderer

2 numeric stepper components in an item renderer of flex

I have to put 2 numeric stepper components in one column of a datagrid. I suppose I need to write my own item renederer code for that. How to write a code for putting 2 numeric stepper components in one coulmn of datagrid. The 2 numeric steppers would work as time (Hour and Min) components. I cannot use readily availabel time components...

Flex - Datagrid ItemRenderer

Is it possible to put an itemrenderer on the DataGrid itself rather than a datagridcolumn? I could only find examples for datagridcolumn. I want a generic itemrenderer on all the items in a datagrid... ...

How can I know when a Button in a Flex DataGrid itemRenderer is clicked?

I have a DataGrid component that displays a few columns of data. It has one additional column that displays a Button that allows the user to take an action with regard to the record. <mx:DataGrid dataProvider="{myData}"> <mx:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name" width="75" />...

How can I add spacing around a Flex DataGrid drop-in Button itemRenderer?

I have a DataGrid with an drop-in Button itemRenderer: <mx:DataGridColumn headerText="" width="135" itemRenderer="ActionButtonItemRenderer" /> However, the button extends all the way both the right and left edge of the DataGridColumn. I've tried messing with the width properties and paddingLeft and paddingRight styles of both the...

Limit width of custom list itemrenderer in Flex

I'm using a custom itemrenderer to display a list of photos and need to know how to control the width. At the moment it does this: Which, as I'm sure you'll agree, is eye-bleedingly ugly. The list is created like this: <mx:Panel width="100%" height="100%" layout="absolute" title="Photos"> <mx:List x="0" y="0" width="100%" height...

Datagrid with RadioButtonGroup itemrenderer

Hi There, I don't know how to do this, tried several things now, so I will ask. The below shows what I want. I just don;t know how to get it working. I have an AC with several questions and assoicated answers. These must be shown in a DG, and the idea is that the rows and colums of the DG are bound to the AC. For example, if the answer...

Calling an external method from a component in Flex 3

I did an application to show a datagrid with a custom column in Flex 3 how can I access to the method loadDetails in this code?: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ public function loadDetails(id:String) : void { // Some code here } ...

Flex: Threaded Comments component

Hi, In continuation to my earlier post on having threaded comments, I have some updates and changes as well. One of the functionalities in my current flex application requires me to maintain a comments section. Here, the users can post the comments and the replies to existing comments. All I want is like the usual thread style commenti...

Custom Itemrender in Datagrid with Datatip

Hi community, I have a datagrid with one datagridcolumn in it. Without a custom itemrenderer I can use a datatipfunction for showing a custom datatip but now I want to have a custom item render for colouring the rows differently. Therefore I extended a label and changed the data method but now my datatipfunction does not work anymore. ...

Cannot Convert to ClassFactory

I have this item renderer MyRenderer.mxml <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" implements="mx.core.IDataRenderer" > <mx:Script> <![CDATA[ [Bindable] public var greylist : XML; public function newInstance() : * { return new MyRenderer(); } ]...

DataGridColumn with ItemRenderer, how to set dataProvider properly?

I'm building a DataGrid to display data similar to the following XML: <foo> <entities> <entity> <name>Jim</name> <trend> <quantity>10</quantity> <quantity>20</quantity> <quantity>30</quantity> </trend> </entity> ... </entiti...

Links in Datagrid (flex)

Hi community, I wanted to ask how I can put links into a datagrid. My dataProvider is the folling xml <xml> <item> <name>A name</name> <url>A url</name> </item> <item> <name>Another name</name> <url>Another url</name> </item> </xml> sure with some more items in it. Now I want to have a datagrid that displays the name as a...

Creating Dynamically Flex Custom ItemRender (Constructor)

Hi, am creating some Advanced Datagrid with actionscript. I have created an actionscript class where I extend the VBox object: package core { import mx.containers.VBox; import mx.controls.TextInput; public class customItemRender extends VBox { public function customItemRender(_TextInput:TextInput, _TextInput2:TextInput) { ...

passing value object to itemRenderer

Hi, how can access/pass a value object in a custom itemrenderer? The item renderer represents a field in my datagrid and i want to be able access properties from my VO. Thanks ...

Flex DataGrid with ComboBox itemRenderer

Hi there, I'm going spare trying to figure out the "correct" way to embed a ComboBox inside a Flex (3.4) DataGrid. By Rights (e.g. according to this page http://blog.flexmonkeypatches.com/2008/02/18/simple-datagrid-combobox-as-item-editor-example/) it should be easy, but I can't for the life of me make this work. The difference I have ...

How to use out-of-datagrid scope variable inside an ItemRenderer?

I'm binding an array of items to a data grid using ItemRenderer. I use the data variable to control the bindable data. I also have someComponentVariable that need be inserted into every row but its declared at the component scope, so the data grid doesn't seem to reconize it (compile error). How can I use this variable (someComponentVa...

Triggering item renderers on hover with Datagrids

I've got a client who has a list of items on a Datagrid. When the row is clicked, it sends the user to another page with details of that item. The client wants the rows to act like HTML links, where the color is purple when the link has been previously visited and its normal color if the row hasnt been clicked in the past. I've accomp...

flex 3 data grid: hide value if == 0 and show checkbox on Booleans

I have a data grid. How can I hide a value of a column if it's "0" ? Do I have to use item renderers? How? Is there an easier way? Second thing, if I have a boolean column whose values are actually the strings "true" and "false" how can I render it as a non editable check box? thanks ...

Flex/AS3 multiple state itemrenderers question

I have created a module with 3 states as an itemrenderer. The states are called Movies, Songs and TvShows. The base state is empty. The itemRenderer consists of Hbox, Vboxes and labels. And I have created a List component. What I want to do is to populate data in my List component and make it visible using my ItemRenderer. Depending o...

Flex: Caching images in list item renderer?

I have a List and the item renderer displays an image. Whenever you scroll the list, and the item renderer refreshes, it redownloads the image. Causing there to always be a delay. Is there some way of caching it so it doesn't have to redownload every time causing a delay in showing the image every time you scroll the list? Thanks! ...