5 Replies Latest reply on Jul 21, 2011 8:51 AM by Flex harUI

    Shift key functionality not working when we are assigning an array to DataGrid.selectedIndices

    Vijith2712

      when i am assigning an array to the selectedIndices property of Datagrid and i tried to use Shift Key for selecting multiple items in datagrid it is not working as we expect.

       

      I am setting the allowMultipleSlection property of dataGrid to true.

       

           dataGrid.allowMultipleSlection = true;

       

      i am storing the dataGrid slectedindices

       

           var selectedArray:Array = new Array();

           selectedArray = dataGrid.selectedIndices;

       

      then i am trying to assign the array to the dataGrid like below

       

           dataGrid.selectedIndices = selectedArray;

       

      Shift key functionality not working as expected.

       

      Thanka and regards

       

      Zinny.