Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Dizzia #1
Adding information dynamically to datagrid
Alright, so I can get columns to dynamically add. Now I'd like to add in some
information that will be changing dynamically. Here's The code I've got. It's
returning a 1050 error, I think the error is because selectedItem is looking
for something specific. By the way, I am trying to add this to a specific
column. I might just be setting this whole application up backwards.
public function addInfo():void {
var source:Object = fLargeIcon.source;
var runner:String = ".icon" + (dataGrid.columns.length + 1);
(dataGrid.selectedItem + runner) = source;
}
Dizzia Guest
-
Adding controls dynamically to a datagrid
Hi, We have a requirement, where based on the UI type selected in a dropdown, a control should get added to the column of a grid dynamically. For... -
Flex 2.0 Dynamically adding columns to a DataGrid (worked in 1.5)
I have code that works fine in v1.5 to add columns to a mx.controls.DataGrid but there is no method addColumn() in 2.0 Any help on this would be... -
Dynamically adding DataGrid columns
Hi, Does anyone know how to add columns dynamically to a DataGrid. i populate the grid using the .ItemDataBound the current structure of my... -
Dynamically adding checkboxes to a dynamic datagrid
I am stumped. How do you add a checkbox dynamically to a datagrid that is built dynamically and then added to a panel control? Thanks in advance. -
Adding Columns to Datagrid Dynamically
Hello Everyone, I have a webpage with three link buttons and a datagrid. I would like to populate the same datagrid with different datasources by... -
peterskeeter #2
Re: Adding information dynamically to datagrid
I dynamically create an arraycollection to feed a DG.
var w:ArrayCollection = new ArrayCollection();
var newObj:Object = {} ;
newObj["id"] = some_dynamic_value;
newObj["firstname"] = some_other_dynamic_value;
newObj["lastname"] = again_some_dynamic_value;
w.addItem(newObj);
This will create the arraycollection items 1 by 1 if you have the above code
(after Arr Coll w is created) in a loop like I do.
I then make w the DG dataprovider and bobs your uncle...
peterskeeter Guest



Reply With Quote

