4 Replies Latest reply on Mar 17, 2011 12:12 PM by DreamTheImpossibleDream

    DataGroup useVrtualLayout and getElementAt

    _spoboyle Level 4

      I have a DataGroup (with useVirtualLayout set to true) containing many elements.

       

      I am trying to force the DataGroup to scroll to a particular item in the group. my approach currently is to obtain a reference to the item I want to scroll to and set the DataGroup's scroll position to that item's y value.

       

      If I call getElementAt() or getVirtualElementAt() on an object that is not currently being shown the functions return null.

       

      Can anyone suggest a way in which I achieve this?