0 Replies Latest reply on Dec 5, 2011 8:25 AM by 4xyfenix

    Last column's strange behavior in mx:AdvancedDataGrid, mx:DataGrid

    4xyfenix Level 1

      Hello,

       

      I have the issue with the last column using DataGrids.

       

      When the width of the data grid is changed due to maximizing/restoring browser's window (I have the application completely using browser window).

      The last column's width grows up while other columns get smaller.

       

      I found this http://kb2.adobe.com/cps/401/kb401224.html #193641. I use 4.5.1 flex sdk.

       

      I found the similar post, here it's http://forums.adobe.com/thread/847222. But there is no answer.

      The only difference that I have horizontalScrollPolicy set to default.

       

      The code I use looks like:

       

      <mx:AdvancedDataGrid sortableColumns="false" sortExpertMode="true" headerSortSeparatorSkin="mx.skins.ProgrammaticSkin" styleFunction="ghStyleFunction" groupIconFunction="ghIconFunction" minHeight="0" height="100%" id="_grid" change="_grid_changeHandler(event)" verticalScrollPolicy="on" resizableColumns="true" initialize="_grid_initializeHandler(event)">

        <mx:columns>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'NAME_LABEL')}" labelFunction="nameFunction" dataTipField="id" width=".30"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'VM_LIMIT_COLUMN_LABEL')}" dataField="total_in_limit" itemRenderer="visualizers.money_short_visualizer" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'VM_BALANCE_LABEL')}" dataField="vmoney_balance" itemRenderer="visualizers.money_short_visualizer" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'TOTAL_IN_LABEL')}" dataField="total_in" itemRenderer="visualizers.money_short_visualizer" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'TOTAL_OUT_LABEL')}" dataField="total_out" itemRenderer="visualizers.money_short_visualizer" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'PRP_COLUMN_LABEL')}" labelFunction="calcPRP" textAlign="right" width=".07"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'TOTAL_POINTS_COLUMN_LABEL')}" dataField="total_points" itemRenderer="visualizers.money_short_visualizer" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'TOTAL_WON_COLUMN_LABEL')}" dataField="total_win" itemRenderer="visualizers.money_short_visualizer" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'GRTP_COLUMN_LABEL')}" labelFunction="calcGRTP" textAlign="right" width=".07"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'TOTAL_BONUS_WON_COLUMN_LABEL')}" dataField="total_bonus_win" itemRenderer="visualizers.money_short_visualizer" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'PROFIT_COLUMN_LABEL')}" labelFunction="calcProfit" textAlign="right" width=".10"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'RP_COLUMN_LABEL')}" labelFunction="calcRP" textAlign="right" width=".07"/>

          <mx:AdvancedDataGridColumn headerText="{resourceManager.getString('structure_page', 'ROUNDS_PLAYED_COLUMN_LABEL')}" dataField="games_played" textAlign="right" width=".07"/>

        </mx:columns>

      </mx:AdvancedDataGrid>

       

      The same happens for the mx:DataGrid.

       

      Thank you.