1 Reply Latest reply on Nov 28, 2007 7:22 AM by AwesomeDigital3

    Focus And Tab Key Order (Data Grid)

    AwesomeDigital3 Level 1
      I need some help trying to figure out why the items below happen.

      I have a data grid with an array collection as it's data provider.

      Issue #1
      I set the focus on the first editable cell in the first row from creationComplete
      myDataGrid.editedItemPosition = (rowIndex:0, columnIndex:1};
      The cell is highlighted properly, but the cursor is not in the cell - Why?

      Issue #2
      I also set the focus on the first editable cell in the first row later when another action happens
      myDataGrid.editedItemPosition = (rowIndex:0, columnIndex:1};
      The cell is highlighted properly, the cursor IS in the cell
      I type something into the cell, hit the tab key and the focus gets totally lost - Why?
      The whole row is still highlighted, but I am not in the next cell - Where is my focus?

      If I MANUALLY click first editable cell after clicking elsewhere, edit the cell, then hit the tab key, the focus moves to the next cell correctly as expected.

      Any suggestions or hacks to make this work?

      Thanks
      Mathias