[flexcoders] Set Style of default itemEditor

2008-03-31 Thread Ben Marchbanks
I am using the default TextInput itemEditor for a data grid and not
having much luck changing its style. Currently its inheriting the text
color from its parent (titleWindow) which is #ff.

I have tried 
event.currentTarget.editedItemRenderer.setStyle(color,#00);
and...
TextInput(tocDG.itemEditorInstance).setStyle(color,#00);
and
event.currentTarget.editedItemRenderer.styleName = textEditor;
and ...
TextInput(tocDG.itemEditorInstance).styleName = textEditor
;
none of these work - what's the proper solution ??



RE: [flexcoders] Set Style of default itemEditor

2008-03-31 Thread Alex Harui
Subclass.  The styleName of the TextInput is set after
ITEM_EDIT_BEGINNING.  If you subclass you can change the styleName in
commitProperties.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Marchbanks
Sent: Monday, March 31, 2008 5:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Set Style of default itemEditor

 

I am using the default TextInput itemEditor for a data grid and not
having much luck changing its style. Currently its inheriting the text
color from its parent (titleWindow) which is #ff.

I have tried 
event.currentTarget.editedItemRenderer.setStyle(color,#00);
and...
TextInput(tocDG.itemEditorInstance).setStyle(color,#00);
and
event.currentTarget.editedItemRenderer.styleName = textEditor;
and ...
TextInput(tocDG.itemEditorInstance).styleName = textEditor
;
none of these work - what's the proper solution ??