Kindly log a bug here - http://bugs.adobe.com/flex/
--- In flexcoders@yahoogroups.com, "kummallinen_puu" <[EMAIL PROTECTED]> wrote: > > I'm having some weird issues with ADG that seem to be somehow focus > related. In some cases ADG will open editor for the last edited cell > even though the editing has been stopped earlier. > > This can be reproduced in the example program (which can be found from > the end of this message) by following these steps: > 1. Open Southwest -> Nevada. > 2. Click Estimate column for the Bethany Pittman row to start editing. > 3. Cancel edit by pressing ESC. > 4. Select Northern California. > 5. Select Submenu from Menu. > > What's happening here is that after clicking submenu, an editor will > open for the cell that was edited in step 2 and that row becomes > selected again. This seems to happen with Opera, Firefox and IE. > > There is also another similar issue that seems to exist only for > Firefox and Opera: > 1. Follow steps 1-4 from the previous example. > 2. Change to some other program window. > 3. Go back to the browser. > 4. Click anywhere in the table. > > Again, editor for the last edited cell will open where ever you click. > > Is there something I'm missing here or is this a bug in ADG? > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:Script> > <![CDATA[ > import mx.collections.ArrayCollection; > > [Bindable] > private var dpFlat:ArrayCollection = new ArrayCollection([ > {Region:"Southwest", Territory:"Arizona", > Territory_Rep:"Barbara Jennings", Actual:38865, > Estimate:40000}, > {Region:"Southwest", Territory:"Arizona", > Territory_Rep:"Dana Binn", Actual:29885, > Estimate:30000}, > {Region:"Southwest", Territory:"Central California", > Territory_Rep:"Joe Smith", Actual:29134, > Estimate:30000}, > {Region:"Southwest", Territory:"Nevada", > Territory_Rep:"Bethany Pittman", Actual:52888, > Estimate:45000}, > {Region:"Southwest", Territory:"Northern California", > Territory_Rep:"Lauren Ipsum", Actual:38805, > Estimate:40000}, > {Region:"Southwest", Territory:"Northern California", > Territory_Rep:"T.R. Smith", Actual:55498, > Estimate:40000}, > {Region:"Southwest", Territory:"Southern California", > Territory_Rep:"Alice Treu", Actual:44985, > Estimate:45000}, > {Region:"Southwest", Territory:"Southern California", > Territory_Rep:"Jane Grove", Actual:44913, > Estimate:45000} > ]); > ]]> > </mx:Script> > > <mx:Panel title="AdvancedDataGrid Control Example" > height="75%" width="75%" layout="horizontal" > paddingTop="10" paddingBottom="10" paddingLeft="10" > paddingRight="10"> > > <mx:MenuBar labelField="@label"> > <mx:XMLList> > <menuitem label="Menu"> > <menuitem label="Submenu" /> > </menuitem> > </mx:XMLList> > </mx:MenuBar> > > <mx:AdvancedDataGrid id="myADG" > width="100%" height="100%" > editable="true" > initialize="gc.refresh();"> > <mx:dataProvider> > <mx:GroupingCollection id="gc" source="{dpFlat}"> > <mx:grouping> > <mx:Grouping> > <mx:GroupingField name="Region"/> > <mx:GroupingField name="Territory"/> > </mx:Grouping> > </mx:grouping> > </mx:GroupingCollection> > </mx:dataProvider> > > <mx:columns> > <mx:AdvancedDataGridColumn dataField="Region" > editable="false"/> > <mx:AdvancedDataGridColumn dataField="Territory" > editable="false"/> > <mx:AdvancedDataGridColumn dataField="Territory_Rep" > headerText="Territory Rep" editable="false"/> > <mx:AdvancedDataGridColumn dataField="Actual" > editable="false"/> > <mx:AdvancedDataGridColumn dataField="Estimate" > editable="true"/> > </mx:columns> > </mx:AdvancedDataGrid> > </mx:Panel> > > </mx:Application> >