Flex 4 spark datagrid selected row change with tab -
i'm trying change selected row in spark data grid when tabbing passed last column. in other words, i'd highlighted row follow active cell.
any ideas?
thank you.
here's how went it. have selectionchange , caretchange events on grid doing same function.
<s:datagrid id="my_rates_grid" x="0" y="0" width="100%" height="100%" creationcomplete="my_rates_grid_creationcompletehandler(event)" editable="true" alternatingrowcolors="[#ffffff, #e9f1f6]" griditemeditorsessionsave="my_rates_grid_griditemeditorsessionsavehandler(event)" requestedrowcount="4" selectionchange="my_rates_grid_selectionchangehandler(event)" caretchange="my_rates_grid_selectionchangehandler(event)"> then in my_rates_grid_selectionchangehandler function (note had change param type generic type event)
protected function my_rates_grid_selectionchangehandler(event:event):void { if(my_rates_grid.editorrowindex >= 0){ trace("it's happening"); my_rates_grid.setselectedindex(my_rates_grid.editorrowindex); } } so everytime tabbed follow , save feature captures new values well.
Comments
Post a Comment