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...
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...
...
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" />...
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...
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...
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...
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
}
...
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...
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.
...
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();
}
]...
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...
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...
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)
{
...
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
...
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 ...
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...
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...
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
...
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...
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!
...