[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn

2006-09-08 Thread bhaq1972
Not surecan you create a little test app, to demonstrate the problem (doesnt have to be a dynamically created datagridcolumn). are you saying the combobox renderer should be set to the datagrid's dataprovider? if that the case, one solution might be to create your own myComboBox (extending a

[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn

2006-09-08 Thread Daniel
That was really helpful! I thank you for that. However, when I do this: - var dataprovider:Array = [{label:"algoA1",data:"algoA1"},{label:"algoB1",data:"algoB1"}]; columna.rendererIsEditor = true; var combo:ClassFactory = new ClassFactory(ComboBox); combo.properties = {dataProvid

[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn

2006-09-08 Thread bhaq1972
you will need to do little bit more. try this var textbox:ClassFactory = new ClassFactory(TextInput); textbox.properties = { text:"Write something here..." }; columna.itemRenderer = textbox; columna.rendererIsEditor=true; etc or you could always put "write something here..." into a global var

[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn

2006-09-07 Thread Daniel
Ok, I get your idea, however, what if I need a custome component to be placed in the itemrenderer, so I can dynamically assing it special feature? Lets say I want to set the text attribute to "Write something here..." when the component initializes. Thanks! --- In flexcoders@yahoogroups.com, "bha

[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn

2006-09-07 Thread Daniel
Ok, I get your idea, however, what if I need a custome component to be placed in the itemrenderer, so I can dynamically assing it special feature? Lets say I want to set the text attribute to "Write something here..." when the component initializes. Thanks! --- In flexcoders@yahoogroups.com, "bha

[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn

2006-09-07 Thread bhaq1972
> var aux:TextInput = new TextInput(); > columna.itemRenderer = aux as IFactory; can you do this instead columna.itemRenderer = new ClassFactory(TextInput); --- In flexcoders@yahoogroups.com, "Daniel" <[EMAIL PROTECTED]> wrote: > > Hello! > > This time Im tryi