The following code works fine for.
Maybe your grids are layered on top of each other?
--------------------------------------------- snip
----------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" creationComplete="onCreationComplete()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var collections : Array;
private function onCreationComplete() : void
{
trace("ApplicationEntry::onCreationComplete");
collections = createCollections();
}
private function createCollections() : Array
{
var result : Array = new Array();
for( var i : int = 0; i < 4 ; i++ )
{
result.push( createCollection() );
}
return result;
}
private function createCollection() : ArrayCollection
{
var result : ArrayCollection = new ArrayCollection();
result.addItem({ id: 1, label:"one"});
result.addItem({ id: 2, label:"two"});
result.addItem({ id: 3, label:"three"});
return result;
}
]]>
</mx:Script>
<mx:Repeater id="gridRepeater"
dataProvider="{ collections }">
<mx:DataGrid dataProvider="{ gridRepeater.currentItem }"/>
</mx:Repeater>
</mx:Application>
--------------------------------------------- snip
----------------------------------------------------
Cheers,
Ralf
On 12/15/06, koldfuzun <[EMAIL PROTECTED]> wrote:
I am using a repeater to loop over an array of array collections. The
array outputs fine when I dump it to HTML, containing 4 array
elements, and each element contains a valid recordsset.
When I use the repeater in Flex only one datagrid is generated, the
very first. I get no errors, nothing. Here is the mxml:
<mx:Repeater id="ArrayItems" dataProvider="{sResult}">
<mx:DataGrid id="events" width="100%"
dataProvider="{ArrayItems.currentItem}" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Start Time"
dataField="StartDateTime"/>
<mx:DataGridColumn headerText="Title" dataField="Title"/>
<mx:DataGridColumn headerText="Screen" dataField="Screen"/>
<mx:DataGridColumn headerText="Ticket Code"
dataField="TicketCode"/>
</mx:columns>
</mx:DataGrid>
</mx:Repeater>
Thanks in advance!
TJ Downes
--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany