Hi Alex, If it were only that simple... As I said earlier, the change event is not fired (in the ADG) when a user arrows off the header. If I am tracing the movement of the selected cell around the ADG, I miss a cell when the user arrows up too far, i.e. to the header, and then arrows down. Give the case below to see what I mean (xml file at http://www.talonrisk.com/apps/test/data.xml ).
Should the change event be fired here? Is this a bug? If not, is there an event that IS fired in this case? Thanks Dominic <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.events.ScrollEvent; import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; import mx.events.ListEvent; private var sRow:int; private var sCol:int; private function selectCell(event:ListEvent):void{ sCol = event.columnIndex; sRow = event.rowIndex; sRowText.text = "Selected Row: " + sRow.toString(); sColText.text = "Selected Column: " +sCol.toString(); } private function resHandler(event:ResultEvent):void{ dg.dataProvider = event.result.TABLE.X; } ]]> </mx:Script> <mx:HTTPService url="data.xml" result="resHandler(event)" id="data"/> <mx:VBox height="100%" width="100%" creationComplete="data.send()"> <mx:HBox width="100%"> <mx:Text id="sColText"/> <mx:Text id="sRowText"/> </mx:HBox> <mx:AdvancedDataGrid id="dg" height="100%" width="100%" itemClick="selectCell(event)" change="selectCell(event)" selectionMode="singleCell" > <mx:columns> <mx:AdvancedDataGridColumn dataField="date" /> <mx:AdvancedDataGridColumn dataField="char" /> <mx:AdvancedDataGridColumn dataField="num" /> </mx:columns> </mx:AdvancedDataGrid> </mx:VBox> </mx:Application> --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I'm confused as to why you want focus on those renderers if you can't > edit them. If focus doesn't matter, the scroll and change events should > be firing as you arrow around. > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Dominic Pazula > Sent: Monday, February 11, 2008 9:57 AM > To: [email protected] > Subject: [flexcoders] Re: Keyboard navigation to objects within > components > > > > I'm looking to: > "I have an AdvancedDataGrid and I want track the user paging up, down, > and across the grid with the arrow keys. I don't want the data to be > editable, which means I cannot use the itemFocusIn event (throw, as > you say, by the item editor)." > > So I would like to know when the user scrolls through a datagrid > (preferably an ADG) using the arrow keys. I do NOT want the data to > be editable. The itemFocusIn event does not fire, and the change > event does not produce acceptable results. > > I think the answer to the question, is "No this is NOT possible out > of the box. You have to write a renderer that implements > IFocusManager and use the itemFocusIn event" > > Thanks > Dominic > > --- In [email protected] <mailto:flexcoders% 40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > I'm not clear what you want. You want arrow keys and pageup/dn to > > navigate to various cells and then edit those cells? > > > > > > >

