0 Replies Latest reply on May 4, 2010 1:06 PM by Handycam

    Columns resizing and states

    Handycam Level 1

      i have a datagrid, where when a user selects an employee in the list, there is a state change that displays a "details" panel and resizes the grid.  When the user closes the detail view, the grid re-sizes back to full width.  However, the columns do NOT return to the way they were:


      Before:

      http://img.skitch.com/20100504-xdii39ekbkg5by73ej6kk2epab.jpg

       

      During:

      http://img.skitch.com/20100504-f88ss4yiq7j68hryks1rx7b83b.jpg

      After:

      http://img.skitch.com/20100504-k498jwb3qquq4x1kwnhe87a8e3.jpg

       

      See?  What's up with that?  Very irritating.

       

      The code is:

      <mx:DataGrid id="people" rowCount="5" sortableColumns="false" showHeaders="false"
                                     width="100%" height="100%" itemClick="showDetail(event)" toolTip="Click on a person for details">
                          <mx:columns>
                               <mx:DataGridColumn dataField="short_name" itemRenderer="com.thumbnail" width="50" headerText="" sortable="false"/>
                               <mx:DataGridColumn  headerText="Name" labelFunction="makeFullName" wordWrap="true" />
                               <mx:DataGridColumn dataField="phone" headerText="Phone" width="45"/>
                               <mx:DataGridColumn id="title" dataField="title" headerText="Title" wordWrap="true"  />
                               <mx:DataGridColumn id="department" dataField="department" headerText="Department" wordWrap="true" />
                          </mx:columns>
                     </mx:DataGrid>