Alex,
That worked out great! Thanks for the tip..

Dan

On Fri, Jun 6, 2008 at 7:05 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>    Yes, or aggregate.  It is more or less up to you.
>
>
>  ------------------------------
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dan Vega
> *Sent:* Friday, June 06, 2008 2:51 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] DataGrid Item Editor Question
>
>
>
> In the end I want to post the data to a form. I already have a working
> model that uploads file to ColdFusion but I want to be able to pass
> additional data as well. If I understand you correctly I should create a new
> data type that extends FileReference and just add to it what i need?
>
> Dan
>
> On Fri, Jun 6, 2008 at 4:35 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> The answer depends on what you plan to do with the rating?  Are you storing
> the rating somewhere? Sending it to the server?  Normally, you will need to
> keep track of that field somewhere on the client and the best place is in
> your data, so adding a field to FileReference via subclassing or aggregation
> (a new class that contains a FileReference plus a new field) is recommended.
>
>
>  ------------------------------
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dan Vega
> *Sent:* Friday, June 06, 2008 12:27 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] DataGrid Item Editor Question
>
>
>
> I have this data grid that holds a list of files. These files are
> fileReferences that are selected by a user browsing the system. After the
> select a file the data shows the name/ext/size. What I want is a 4th column
> for the user to select a value from the drop down. I get an error with the
> code below because there is no default value. I am not sure how I would go
> about this because the fileReference object does not hold this data so I can
> not give it a dataField. I am sure this is because Im a new, any help is
> appreciated!
>
>
>         <mx:DataGrid id="dgFiles" width="100%" height="100%"
> dataProvider="{_files}" editable="true">
>             <mx:columns>
>                 <mx:DataGridColumn headerText="File Name" dataField="name"
> editable="false"/>
>                 <mx:DataGridColumn headerText="File Type"
> dataField="extension" editable="false"/>
>                 <mx:DataGridColumn headerText="File Size" dataField="size"
> labelFunction="bytesToKilobytes" editable="false"/>
>                 <mx:DataGridColumn headerText="Rating" editable="true">
>                     <mx:itemEditor>
>                         <mx:Component>
>                             <mx:ComboBox editable="true">
>                                 <mx:dataProvider>
>                                     <mx:String>1</mx:String>
>                                     <mx:String>2</mx:String>
>                                     <mx:String>3</mx:String>
>                                     <mx:String>4</mx:String>
>                                     <mx:String>5</mx:String>
>                                 </mx:dataProvider>
>                             </mx:ComboBox>
>                         </mx:Component>
>                     </mx:itemEditor>
>                 </mx:DataGridColumn>
>             </mx:columns>
>         </mx:DataGrid>
>
>
> --
> Thank You
> Dan
>
>
>
>
> --
> Thank You
> Dan Vega
> [EMAIL PROTECTED]
> http://www.danvega.org
>   
>



-- 
Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org

Reply via email to