1 Reply Latest reply on Jan 8, 2010 5:53 AM by Daverms

    Vertical scroll problem in datagrid.

    niranjan swain

      Hi,

      I am creating a datagrid dynamically means i no of columns and no of rows can be change in run time.

       

      it is totally made in actionscript. when i no of recods is grater than the grid size the vertical scroll comes in the

      grid but when try to scroll it it gives the following error.

       

       

      TypeError: Error #1010: A term is undefined and has no properties.
      at mx.controls.listClasses::ListBase/scrollVertically()
      at mx.controls::DataGrid/scrollVertically()
      at mx.controls.listClasses::ListBase/set verticalScrollPosition()
      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()
      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()
      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()

       

      if any one know about this problem please respose me asps.

       

      Thanks

      Niranjan