Hey,
Thanks for that, I had tried that earlier.

hitch

--- In flexcoders@yahoogroups.com, poonam vora <[EMAIL PROTECTED]> wrote:
>
> hie,
>   well i came across some example which can help u.
>   but niether it has combo box nor classes
>   but it uses event listeners.. and also uses custom components
>    [if u r very new to flex, might be u dont get it]
>   custom component is nothing but some component which is designed
on ur  needs/. and event listeners are something that respond to events.
>  
>   but if u try to run the example below then it could be that
similar kinda output u required.
>   so try out this example []
>
>   main.mxml
>   ----------------
>   <?xml version="1.0"?>
>   <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*">
>      
>       <mx:Script>
>           <![CDATA[
>               [Bindable]
>               public var initDG:Array = [
>                    {Company: 'Acme', Contact: 'Bob Jones',
>                            Phone: '413-555-1212', Date: '5/5/05'},
>                    {Company: 'Allied', Contact: 'Jane Smith',
>                            Phone: '617-555-3434', Date: '5/6/05'} ];
>           ]]>
>       </mx:Script>
>  
>   <mx:DataGrid id="myGrid" dataProvider="{initDG}"
variableRowHeight="true">   
>           <mx:columns>
>               <mx:DataGridColumn dataField="Company"
>                    itemRenderer="RendererDGListData"/>
>               <mx:DataGridColumn dataField="Contact"
>                    itemRenderer="RendererDGListData"/>
>               <mx:DataGridColumn dataField="Phone"
>                    itemRenderer="RendererDGListData"/>
>               <mx:DataGridColumn dataField="Date"
>                    itemRenderer="RendererDGListData"/>
>           </mx:columns>       
>       </mx:DataGrid>    
>   </mx:Application>
>  
>   -----------------
>   RendererDGListData
>   ------------------
>   <?xml version="1.0"?>
>   <!-- RendererDGListData.mxml -->
>   <mx:TextArea xmlns:mx="http://www.adobe.com/2006/mxml"
preinitialize ="initTA();">
>  
>       <mx:Script>
>           <![CDATA[
>          
>               import mx.controls.dataGridClasses.DataGridListData;
>               import flash.events.Event;
>          
>               public function initTA():void {
>                    addEventListener("dataChange", handleDataChanged);
>               }   
>  
>               public function handleDataChanged(event:Event):void {
>                    // Cast listData to DataGridListData.
>                    var myListData:DataGridListData =
DataGridListData(listData);
>                  
>                    // Access information about the data passed to
the item renderer.
>                    text="row index: " + String(myListData.rowIndex) +
>                        " column index: " +
String(myListData.columnIndex);
>               }   
>           ]]>
>       </mx:Script>
>   </mx:TextArea>
>  
>   and then  execute main.mxml
>  
>   bye.
>  
> sarvesh610 <[EMAIL PROTECTED]> wrote:        Hi,
>    I am new to Flex, have been a J2EE person for a longtime. I have
>   developed an application which queries the database and returns me a
>   value object which has a list and vector. Now I need to use Flex as a
>   user interface. I have called the class using the remote-object, but
>   then how do I use the List and the Vector to display.
>    Also I am a bit confused about the <mx:ComboBox>, how can I use the
>   dataprovider to use my value object to display the companyDesc as the
>   label and data as the ric if I am using the <mx:Object>
>  
>   Thanks
>   S
>  
>  
>  
>          
>
>     --
>   Flexcoders Mailing List
>   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>
>                      
>
>           SPONSORED LINKS   
>                                                         Web site
design development                                          Computer
software development                                          Software
design and development                                              
                          Macromedia flex                           
             Software development best practice                     
                                     
>        
> ---------------------------------
>     YAHOO! GROUPS LINKS 
>  
>      
>     Visit your group "flexcoders" on the web.
>     
>     To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>     
>     Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
>  
>      
> ---------------------------------
>  
>  
>          
>
>                        
> ---------------------------------
>   Yahoo! India Answers Share what your know-how and wisdom
>  Send free SMS to your Friends on Mobile from your Yahoo! Messenger
Download now
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to