2 Replies Latest reply on Dec 17, 2009 1:03 AM by danny_run

    renderers

    maheekp

      Hi friends,

       

      Any easy to understand examples on renderers.

      Like adding new rows with delete button, select all or select individual lines, auto resizeable text boxes.

      Any help would be appreciated.         

       

      Regards,

      Mahee

        • 1. Re: renderers
          Flex harUI Adobe Employee

          Try my blog?

           

          Alex Harui

          Flex SDK Developer

          Adobe Systems Inc.

          Blog: http://blogs.adobe.com/aharui

          • 2. Re: renderers
            danny_run

            Here is an exmaple of on itemgrid renderer. You can use insted of a button what ever you want (checkbox, combobox etc).

            <?xml version="1.0" encoding="utf-8"?>
            <mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" width="128" label="Print" click="deleteManifest()">
                <mx:Script>
                    <![CDATA[
                        import mx.rpc.events.ResultEvent;
                        import com.crispico.tethys.dto.ManifestDto;
                        import com.crispico.tethys.dto.ShipmentDto;
                        import mx.controls.Spacer;
                        import mx.containers.ControlBar;
                        import mx.controls.TextInput;
                        import mx.controls.DataGrid;
                        import mx.controls.Label;
                        import mx.containers.HBox;
                        import mx.containers.VBox;
                        import mx.managers.PopUpManager;
                        import mx.containers.Panel;
                        import mx.controls.Alert;
                        import mx.controls.dataGridClasses.DataGridListData;
                      
                    
                         private function deleteManifest():void{
                             var table:DataGrid=DataGrid(this.owner);//this will load your datagrid so you can use it here
                             deleteManifest(table.selectedItem.id);// make an action with the selectedDatagrid   
                        }

             

                  
                    ]]>
                </mx:Script> 
               
            </mx:Button>