Can somebody provide an example for using an itemEditBegin event
handler for a datagrid?
The Flex 2b3 documentation states that it can be used to modify the
data passed to the item editor.
But the example given therein, uses itemEditEnd (for modifying data
received from an item editor).
My requirement is to use this event to prefill my item editor with
data from a data provider which has values deeply nested in a VO for
each item. I have tried using
event.currentTarget.editedItemRenderer.data
but editedItemRenderer seems to be null during this event. Also
event.currentTarget.itemEditorInstance is null, possibly because the
default itemEditBegin event handler actually creates the item editor.
So I believe I would have to use createItemEditor to create the
editor myself and also invoke preventDefault so that this does not
happen twice. But I need to see a correct implementation of this
event handler to ensure that I do not miss anything that the default
handler does.
Any help in this regard will be greatly appreciated.
Regards!
Santosh
--
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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

