|
Didn't get a reply to this, however I have solved
my problem by manually dispatching an event from the datagrid after I set
selectedIndices.
<mx:Script>
public function
captureDatagridKey(event:KeyboardEvent):void
{ var a:Array, i:Number; if (event.ctrlKey && event.keyCode == 65){ var num:Number = event.target.dataProvider.length as Number; a = []; for (i=0;i<num;i++) a[i] = i; event.target.selectedIndices = a; event.target.dispatchEvent(new
Event("change"));
} }
</mx:Script> Cheers,
Adam
__._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- Re: [flexcoders] DataGrid change events Adam Royle
- RE: [flexcoders] DataGrid change events Matt Chotin

