I have a custom item renderer that displays images:
<mx:DataGrid dataProvider="{friends.friend}" id="friendsGrid" width="240"
rowCount="3" variableRowHeight="true" headerHeight="0"
horizontalCenter="true" backgroundAlpha="0" borderThickness="0"
useRollOver="false" selectable="false">
<mx:columns>
<mx:DataGri...
I'm running into an odd issue with itemRenderers inside a TileList.
Here is a working example without an itemRenderer: 152.org/flex/
Here is the broken version with an itemRenderer: 152.org/brokenExample/
(I don't have the rep to make both of these a link)
Both examples have "View Source" enabled.
To see the problem use the broken ex...
Hi,
I'm hacking my way through learning Flex and have found some strange behaviour. When I try to compile my code, I'm thrown this error - Error: Call to a possibly undefined method updateStory. I've used method calls in this way before, and can't spot what's going wrong in this case. Here's the code for the component:
<?xml version="1...
I have and list compontent with an extrunal itemrenderer.
My itemrender is a module that i would like to load in at runtime.
I have used moduleloader tag but it doesn't display anthing.
if i don't use the moduleloader tag but the instead() it displays the content.
does anyone know how i must do this?
Application file with list compone...
I have a List and the item renderer displays an image and text from xml (news rss).
Not all news have an image. Whenever you scroll the list, and the item renderer refreshes, it move images of news of a position, so the news "1" have the image of news "2", and the news "2" have the image of news "3" ecc., but the text (the title of news...
Indeed they both (skins and itemRenderers) seem to do drawing using the flash.graphics.* package. I have copy pasted code between skins and itemRenderers before, so I really don't understand the difference. I have had more experience implementing itemRenderers than skins, so that might be part of the problem. Thanks, let me know.
...
I have a combobox with a custom itemRenderer. The ItemRenderer displays some images and a label.
When the combobox opens, the items in the dropdown list display perfectly, but when its closed, the combobox doesn't use the ItemRendere, but shows "[object MyItem]". Do I need another attribute to indicate that the ItemRender also needs to b...
I have this DataGrid:
<mx:DataGrid id="myDataGrid">
<mx:columns>
<mx:DataGridColumn dataField="colA" headerText="Column A:" width="40"
headerRenderer="path.customComponents.VerticalHeader"
itemRenderer="path.customComponents.CustomDataGridItemRenderer" />
</mx:Columns>
</mx:DataGrid>
Only I don'...
I have two separate datagrids, they both use the same class as the custom headerRenderer. I am having problems thinking of a way to sync the size of each headerRenderer. If grid1 has two rows worth of text (word wrapping is enabled) and grid2 has one rows worth of text. I want both grid1 and grid2 to both be the height of two rows worth ...
Hi, I have a DataGrid whose dataProvider is an Array of int Arrays (each with different lengths). Since each row has variable size (and I want to display all the data), I decided to extend DataGridColumn and overwrite the itemToLabel function to be able to display the data. The problem is that I also need to display the data differently ...
Hi
I'm a total Flex newbie and I struggle with event model. I have the following scenario:
having DataGrid with dataProvider set to ArrayCollection
the data grid is a simple to-do list, first column contains check box as item renderer
other columns are plain strings
What I need to achieve is that after data grid has been created or ...
hi,
I have a datagrid with variable height.
I have written a Itemrendrer for rendrering data.
now there is one more part that is the text field. i would like to resize the comtainer height
to that of the text field so that the text doesn't get truncated.
Thanks sohil
Following are my classes
Auto Resize Text Area
package
{
import ...
Hello!
I have some DataGrid with editable rows, which has also an option to add new row 'dynamically'. I mean, last row has some default data (e.g. "CLICK HERE TO ADD NEW ROW") and when user clicks on it, he can edit that value and new row will be eventually inserted.
However, I also have a column in same DataGrid which doesn't come fro...
Hi all.
I have a very simple DataGrid with 2 columns, some thing like this:
<mx:DataGrid id="grid" >
<mx:columns>
<mx:DataGridColumn dataField="name" headerText="Name"/>
<mx:DataGridColumn dataField="date" headerText="Date"/>
</mx:columns>
</mx:DataGrid>
What Im trying to do is to activate the edition of the s...
We have a requirement to show a list of appointment slots. So every hour of a schedule has a set of 10 min slots. The requirement is that if we click on a arrow button at the 8:00, 9:00 hour slot, the layout of the hour slots should change from a vertical list to a horizontal list.
For this we modeled the system as follows:
ScheduleCo...
Hi everybody,
I have a Tree Control inside my Flex Application which I want to edit on a doubleclick on a tree item. I found the properties doubleClickEnabled="true", doubleClick="startEditMode()", and editable="true". With these functions I can detect a double click and I can change the editable property to true based on a double click...
I have a grid filled with >1000 datasets. one column uses a custom itemRenderer which is used to display the value of a foreign key.
All the datasets which are displayed without scrolling are displayed with the right information. But when it comes to scrolling, some datasets will have displayed the wrong value in the itemRenderer. As fa...
I'm new at this and I've been trying to dynamically load images/swf files into a HorizontalList. As the user scales the application, the HorizontalList scales, but the images don't.
I've been able to get images to scale within a Canvas object, but I've had no luck with the HorizontalList.
Note, I'm using ObjectProxy to get rid of weird...
Hi,
I have a TileList with thumbnail images. Under each thumbnail images I display the name of the image. I want to build rename functionality. So under the TileList is a "Rename selected image" button.
When this button is clicked, I would like to change the state of the itemRenderer component. The label underneath the image will cha...
Hello again,
I'm making a LIST container with my own item renderer to display xml file.
Now, I'm overriding the public override function set data(value:Object):void method in my item renderer, the problem is that this function been called many times(!!) (more then the data provider length).
Maybe I'm not setting the data provider righ...