0 Replies Latest reply on Sep 14, 2009 2:21 PM by toddcoulson

    data missing from dataGrid initially

    toddcoulson Level 1

      We have two data grids in our view. We did some skinning and placed some renderers on the dataGrids to change appearance. But now when we go to the page with the dataGrid, the data does not show up on screen until you either click on the dataGrid, or resize the window - then the data appears. Has anyone experienced this?

      Here is the code snippet of our dataGrid if it helps:

      <mx:DataGrid  styleName="dataGrid"  backgroundAlpha="1.0" left="content:0" right="content:0" verticalGridLines="false" top="row2:0" horizontalGridLines="false" id="myTraining" width="100%" height="100%" 
                     dataProvider="{myTrainingCourses}" click="{onCourseClick(event)}">               
                     <mx:columns>
                          <mx:DataGridColumn  dataField="launch" fontWeight="bold" fontFamily="Arial" fontSize="12" headerText="Launch"/>                                                           
                          <mx:DataGridColumn itemRenderer="com.pegasus.tms.renderers.ClassProperty" fontWeight="bold" fontFamily="Arial" fontSize="12"
                               dataField="course.name" headerText="Course Name" width="150" />                          
                          <mx:DataGridColumn itemRenderer="com.pegasus.tms.renderers.ProgressBarRenderer" fontWeight="bold" fontFamily="Arial" fontSize="12"
                               dataField="percentComplete" headerText="% Complete" />       
                          <mx:DataGridColumn itemRenderer="com.pegasus.tms.renderers.DateDisplayString" fontWeight="bold" fontFamily="Arial" fontSize="12"
                               dataField="expiration" headerText="Exp. Date" />
                          <mx:DataGridColumn dataField="completionCertificate" headerText="Completion Certificate" fontWeight="bold" fontFamily="Arial" fontSize="12" />
                     </mx:columns>
                </mx:DataGrid>
      

      Again, thanks for your help.