Skip navigation
Z4g0s
Currently Being Moderated

Spark Datagrid on a mobile application, problem handling scrolling

Dec 19, 2011 1:10 AM

Tags: #scrolling #mobile #datagrid #selectionchange

I  have a spark datagrid on a mobile application, I set the

interactionMode="touch"

and the dataGrid scrolling is good, I got some problems adding a selectionChange eventListener to it, because scrolling the dataGrid will automatically change the selection and instead simply scrolling it, the function binded will start...

How can I prevent that?

 

 

<s:DataGrid id="lista"  top="350" bottom="50" right="0" left="0"


dataProvider="{listaPdv}"


verticalScrollPolicy="auto"


rowHeight="100"


selectionColor="#b64947"


skinClass="skins.dataGridSkin"


itemRenderer="components.dataGridItemRendererText"


fontFamily="Verdana"


fontSize="30"


interactionMode="touch"


horizontalScrollPolicy="auto"



selectionChange="datagrid_select(event)">

 

Help... It's really annoying and I cannot scroll the datagrid...

 
Replies
  • Currently Being Moderated
    Dec 19, 2011 11:43 AM   in reply to Z4g0s

    The spark DataGrid hasn't been upgraded to distinguish between touch selection and touch scrolling like the spark List.  This along with performance are reasons why the spark DataGrid is not optimized for or recommended for use on mobile devices.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points