0 Replies Latest reply on Jul 20, 2012 4:17 AM by kaissun

    DataGrid Horizontal Scrolling displays slowly




      The problem is that the dataGrid displays slowly when scrolling the horizontal one. The vertical scroll bar is optimized we don't have this issue.


      As it is a deferred bug in this link and I tried hard to use this example proposed by Alex in this discussion, I wonder if there is anyone can solve this problem which is hold from 2009.


      I tested it with the run example of Alex's solution, I have got some errors like the following:


      TypeError: Error #1010: A term is undefined and has no properties.
      at mx.controls.listClasses::ListBase/shiftRow()
      at mx.controls.dataGridClasses::DataGridBase/shiftRow()
      at mx.controls.listClasses::ListBase/scrollVertically()
      at mx.controls::DataGrid/scrollVertically()
      at mx.controls.listClasses::ListBase/set verticalScrollPosition()
      at mx.controls::DataGrid/set verticalScrollPosition()
      at mx.controls.listClasses::ListBase/mouseWheelHandler()
      at mx.controls::DataGrid/mouseWheelHandler()



      TypeError: Error #1009: Cannot access a property or method of a null object reference
      at mx.controls.dataGridClasses::DataGridBase/addToFreeItemRenderers()
      at BetterDataGrid/shiftColumns()
      at BetterDataGrid/scrollLeftOrRight()
      at BetterDataGrid/set horizontalScrollPosition()
      at mx.controls::DataGrid/scrollHandler()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()
      at mx.controls.scrollClasses::ScrollThumb/mouseMoveHandler()



      To reproduce it just try repeatedly to use the mouse wheel and then the horizontal scroll bar.


      It will be grateful if anyone could investigate about this and settle an adequate solution for this.