3 Replies Latest reply on Dec 14, 2011 10:02 AM by meececa

    Spark DataGrid scrollToIndex?

    MixMastaJames Level 1

      In Flex I used to use the dataGrid.scrollToIndex(XX) to scroll down to a selected row.

       

      I can't seem to get anything to work for the Spark DataGrid in FB4.5.  Searching around I tried to impliment this:

      dataGrid.ensureCellIsVisible(selectedSlideIndex);

      dataGrid.setSelectedIndex(selectedSlideIndex);

       

      The selectedSlideIndex is set when a row is selected to store the int.

       

      I can't get the DataGrid to scroll to the index, OR select the index..

       

      So what is the Spark DataGrid version of the MX DataGrid.scrollToIndex?