flex datagrid custom tab behavior -


I have two datagrids and I want to override the behavior of tab-key event so that it goes to the next grid, When the cursor first reaches the end of the Data Grid column

Any hint is appreciated!

Marcus

gt; & lt; mx: script & gt; & gt; [CDATA [[bidetable] personal query src: array = [[A: 1, b: 2, c : 3}, {a: 1, b: 2, c: 3}, {a: 1, b: 2, c: 3}]; private function init (): zero {this.systemManager.addEventListener (KeyboardEvent.KEY_DOWN , OnKeyDown);} Kidown at the Private Function (E: Dialboard Avent): Zero {trace (dg1.rowCount, dg1.columnCount); if (e.target.parent.parent.parent.pdf is DataGrid) var dg: DataGrid = e.target.parent.parent as a DataGrid ; If (DG == DG1) if (DG.editItimposicolm index == DG columnCount-1) if (DG.editItemotion.OR &X == (DG.Rockout / 2) - 1) DG 2.Setfocus () ;}]] & Gt; & lt; / mx: script & gt; & lt; mx: vbox & gt; & lt; Mx: DataGrade id = "dg1" dataProvider = "{src}" tab enabled = "true" editing = "true" & gt; & Lt; Mx: column & gt; & Lt; Mx: DataGridColumn headerText = "A" dataField = "a" /> & Lt; Mx: DataGridColumn headerText = "B" dataField = "b" /> & Lt; Mx: DataGridColumn headerText = "C" dataField = "c" /> & Lt; / Mx: column & gt; & Lt; / Mx: data grid & gt; & Lt; Mx: text input text = "dfalsdfasdf" /> & Lt; Mx: Datagrid id = "dg2" dataProvider = "{src}" tab enabled = "true" edit = "true" & gt; & Lt; Mx: column & gt; & Lt; Mx: DataGridColumn headerText = "A" dataField = "a" /> & Lt; Mx: DataGridColumn headerText = "B" dataField = "b" /> & Lt; Mx: DataGridColumn headerText = "C" dataField = "c" /> & Lt; / Mx: column & gt; & Lt; / Mx: data grid & gt; & Lt; / Mx: VBox & gt; & Lt; / Mx: Applications & gt;

Basically, these are two datagroups in which there is a textfield between them. If you are on the tab naturally from the last editable cell of the first grid, it would first go to the text field, then the second tab event will focus on the second data gradient.

I said that this is">

Hopefully this should help you move forward;)


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -