2 Replies Latest reply on Apr 9, 2010 6:50 PM by clifbar111

    how to remove empty space in list

    Magesh R Level 1

      Hi friends,

       

       

      I have use mx:list and mx:Datagrid  in my application.First display the list values and below to display the datagrid values. even If the list values are empty but the list taken empty space of application after then the grid values are display.how to remove the empty space in list(ie the list values are empty).

       

       

      <mx:List id="folderListGrid"  mouseOver="DataGridMouseOver(event)" rowHeight="24" verticalScrollPolicy="auto"  verticalCenter="0" horizontalCenter="0" iconField="@Embed('assets/folder_up.gif')" rowCount="{folderListArray.length}" labelField="document_folder_name" borderVisible="false" itemRollOver="setLastList_TreeItem(event);" contextMenu="{treeMenu_List}"
      dataProvider="{folderListArray}" itemClick="changeTree(event)"  borderColor="#FFFFFF" rollOverColor="#FFFFFF" selectionColor="#FFFFFF" dragEnabled="true" dragMoveEnabled="true" dragComplete="onDragComplete(event)"   showDataTips="true" >

       

       

      <mx:DataGrid id="fileListGrid" alternatingItemColors="[#DCDCDC,#F8F8FF]"  paddingLeft="5" dataTipFunction="buildToolTip"  mouseOver="DataGridMouseOver(event)" horizontalScrollPolicy="off"   horizontalGridLines="false" verticalScrollPolicy="off" rowHeight="24" verticalGridLines="false"
        rowCount="{fileListArray.length}" borderSkin="{null}" itemRollOver="setLastFileList_TreeItem(event)" contextMenu="{treeMenu_FileList}"
        sortableColumns="true" showHeaders="true" borderVisible="false" visible="false"  dataProvider="{fileListArray}" width="100%"
        allowMultipleSelection="true" dragEnabled="true" dragMoveEnabled="true" dragComplete="ongridDragComplete(event)">
      <mx:columns>
         <mx:DataGridColumn width="110" minWidth="65"   >
      <mx:itemRenderer>
        <fx:Component>
         <mx:HBox horizontalScrollPolicy="off" >
          <mx:Image source="@Embed(source='assets/Emailbox.gif')" click="outerDocument.EmailImgClick()"  toolTip="Email this File:{data.document_long_name}" buttonMode="true" />
          <mx:Image source="@Embed(source='assets/Zoom.gif')" click="outerDocument.ThumbnailImgclick(data.document_long_name)"   toolTip="{data.document_long_name} Thumbnail" buttonMode="true" />
          <mx:Image source="@Embed(source='assets/Search.gif')" click="outerDocument.Notesclick(data.document_long_name)"   toolTip="{data.document_long_name} Notes"  buttonMode="true" />
         </mx:HBox>
        </fx:Component>
      </mx:itemRenderer>
         </mx:DataGridColumn>
         <mx:DataGridColumn width="115" minWidth="82" headerText="Create Date " dataField="document_create_dat" labelFunction="dateFunc"  />
         <mx:DataGridColumn width="90"  minWidth="70" headerText="File Size" dataField="document_bytes" labelFunction="calcSize" />
      </mx:columns>
      </mx:DataGrid>

       

       

      Any Help to me.

       

       

      Thanks,

      Magesh R.