Hi,

welcome on board.

You may get performance problems with DataGrids placed inside a Repeater tag. 
Probably a better solution would be to use mx.controls.List components for your 
calendar. You may also want to take a look into the CellRenderer API - cell 
renderers give you a very high level of control on cells inside list based 
controls. 

Dirk. 

> -----Original Message-----
> From: Michael Hnat [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 31, 2005 4:01 PM
> To: [email protected]
> Subject: [flexcoders] Problem with Repeater.
> 
> 
> 
> Hi,
> 
> I (newbie) have to code a calenderview like outlook. Several 
> Days must be
> displayed. My first idea was using on DataGrid with multiple 
> Columns. But
> I've problems with dragging elements from one day to an 
> other. My next idea
> was using multiple DataGrids with one Column. Both ideas have 
> the problem to
> display more than one appointment at one time (like Outlook). 
> Does anybody have a better idea to solve this problem or a 
> ready component?
> 
> My example with multiple DataGrids (see below) is not 
> displaying the correct
> headerText. It should be a value from the dp:Array. It works for the
> mx:Label, but not for the mx:DataGridColumn. What am I doing wrond?
> 
> Thanks for your help,
> Michael Hnat
> 
> ----- code -----
> <?xml version="1.0"?>
> <mx:Application 
> xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
> backgroundColor="#FFFFFF">
> <mx:Script> 
> <![CDATA[
> var dp:Array = [{name:"1"},{name:"2"}, {name:"3"},
> {name:"4"}, {name:"5"}];    
> var initDG:Array = [{ Day:'06:00'}, { 
> Day:'07:00'},
> { Day:'08:00'}, { Day:'09:00'}];
> ]]>
> </mx:Script>
> <mx:Panel title="Repeater Panel">
> <mx:HBox>
> <mx:Repeater id="rp" dataProvider="{dp}"
> recycleChildren="true">
> <mx:Label text="{rp.currentItem.name}" />
> <mx:DataGrid id="dg2" dataProvider="{initDG}"
> editable="true">
> <mx:columns>
> <mx:Array>
> <mx:DataGridColumn
> headerText="{rp.currentItem.name}" columnName="Day" width="100"/>
> </mx:Array>
> </mx:columns>
> </mx:DataGrid>
> </mx:Repeater>
> </mx:HBox>
> </mx:Panel>  
> </mx:Application>
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


Reply via email to