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
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:
.
- 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
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
4 matches
Mail list logo