Re: [flexcoders] Re: Can validation prevent text input entry?

2007-03-22 Thread Lex
Subject: RE: [flexcoders] Re: Can validation prevent text input entry? You could call a dataIsValid method on each itemEditorInstance. Just know that the editor gets destroyed later and isn't around forever

RE: [flexcoders] Re: Can validation prevent text input entry?

2007-03-21 Thread Alex Harui
ITEM_EDIT_END is dispatched from DataGrid mx:DataGrid id=dg itemEditEnd=itemEditEndHandler(event) / private function itemEditEndHandler(event):void { if (!dataIsValid(dg.itemEditorInstance.text)) event.preventDefault(); } From:

Re: [flexcoders] Re: Can validation prevent text input entry?

2007-03-21 Thread Lex
. - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Sent: Wednesday, March 21, 2007 2:09 PM Subject: RE: [flexcoders] Re: Can validation prevent text input entry? ITEM_EDIT_END is dispatched from DataGrid mx:DataGrid id=dg itemEditEnd=itemEditEndHandler(event

RE: [flexcoders] Re: Can validation prevent text input entry?

2007-03-21 Thread Alex Harui
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Can validation prevent text input entry? Thanks for the message Alex, however, is there no way to have the itemEditor handle this innately? It'd be a cleaner solution than a huge itemEditEnd block inside of the datagrid container's mxml