any ideas? anyone thought i'd create a small testbed. to demo my issue
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Text text="I want to set focus into the hello button after i tab out of the last column of every row"/> <mx:DataGrid id="dg" editable="true"> <mx:columns> <mx:Array> <mx:DataGridColumn dataField="one"/> <mx:DataGridColumn dataField="two"/> <mx:DataGridColumn dataField="three"/> </mx:Array> </mx:columns> <mx:dataProvider> <mx:Object one="hello" two="world" three="one"/> <mx:Object one="hello2" two="world2" three="two"/> <mx:Object one="hello3" two="world3" three="three"/> </mx:dataProvider> </mx:DataGrid> <mx:Button label="hello"/> </mx:Application> --- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote: > > in my example, i would like to setfocus onto a button (btn1) after > tabbing out of the last datagridcolumn (instead of tabbing thru > every row) > > <mx:DataGrid id="dg" dataProvider="{dp}" editable="true"> > <mx:columns> > <mx:DataGridColumn dataField="Company" editable="false"/> > <mx:DataGridColumn dataField="Contact"/> > <mx:DataGridColumn dataField="Phone"/> > <mx:DataGridColumn dataField="City"/> > <mx:DataGridColumn dataField="State"/> > </mx:columns> > </mx:DataGrid> > <mx:Button id="btn1" label="hello"/> > > i tried trapping the 'tab' keydown event and setting focus on to > btn1 but doesnt work. > > any ideas how i can do this > regards > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/