[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-23 Thread quantum_ohm
:-( anybody ?? --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > Hi All ! > > here is my problem since days : > > I have a combobox in a datagrid as an itemrenderer. > Then another combobox in that same datagrid which is enabled=false. > And I'd like to turn that co

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
Hi Alex, thx for responding ! Is there a particular sample on your blog which will be close to what I'd like to do ? I've check out your blog, but I get lost with all the samples... Regards. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Normally, everything shoul

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread markgoldin_2000
How about something like this. //Add lsitener to your primary combobox: addEventListener("change", handleDataChanged); public function handleDataChanged(event:ListEvent):void { var Column:AdvancedDataGridColumn = new AdvancedDataGridColumn; Column = AdvancedDataGrid(listData.owner).column

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread markgoldin_2000
I wasn't correct. Column.itemRenderer.properties will not work. --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > How about something like this. > //Add lsitener to your primary combobox: > addEventListener("change", handleDataChanged); > public function handleDa

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
Yes, thx Mark, It sounded fine, but you're right the 'properties' property is not defined via mx.core:IFactory... too bad ! :-( Maybe another tip ? --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > I wasn't correct. > Column.itemRenderer.properties will not work.

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread markgoldin_2000
Try ClassFactory(Column.itemRenderer).properties = ... --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > Yes, thx Mark, > > It sounded fine, but you're right the 'properties' property is not > defined via mx.core:IFactory... > too bad ! :-( > Maybe another tip ? >

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
ok, now I have this, which doesn't throw any errors, but nothing happens...? Do I forget something ? private function init():void{ addEventListener( "change", handleDataChanged ); } public function handleDataChanged( event:ListEvent ):void{ var _column:DataGridColumn = new DataGridColumn(); _colum

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
Finally I did it like this: public function handleDataChanged( event:ListEvent ):void{ var _renderer:ClassFactory = new ClassFactory( GraviteRenderer ); _renderer.properties = {enabled: true}; this.parentApplication.dgSpec.columns[2].itemRenderer = _renderer; } *GraviteRenderer = myFirstComboBoxI

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread markgoldin_2000
Does handleDataChanged actually fire? --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > ok, now I have this, which doesn't throw any errors, but nothing > happens...? Do I forget something ? > > private function init():void{ > addEventListener( "change", handleDataC

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
I spoke too fast... this way the first combo replace the second in the DG ! I'm getting a big headache ! --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > Finally I did it like this: > > public function handleDataChanged( event:ListEvent ):void{ > var _renderer:Class

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
yes, I put a simple trace, and it returns my simple string --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > Does handleDataChanged actually fire? > > --- In flexcoders@yahoogroups.com, "quantum_ohm" > wrote: > > > > ok, now I have this, which doesn't throw any

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread markgoldin_2000
var mainColumn:AdvancedDataGridColumn = new AdvancedDataGridColumn; mainColumn = AdvancedDataGrid(listData.owner).columns[2]; ClassFactory(mainColumn.itemRenderer).properties = {enabled:false}; This works for me. --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > I s

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
I guess you're using an AdvancedDataGrid. Why ? I think I could try this way but isn't it possible with a normal DG ? --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > var mainColumn:AdvancedDataGridColumn = new AdvancedDataGridColumn; > mainColumn = AdvancedDat

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread markgoldin_2000
Try with ADG and see if it works. I dont see why it wouldn't work with DG as well. --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > I guess you're using an AdvancedDataGrid. Why ? > I think I could try this way but isn't it possible with a normal DG ? > > > > --

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
I tried with ADG and I got the same result...doesn't work... I must have something wrong somewhere ! Is there a way for you to send me the files of your test so that I can compare ? --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > Try with ADG and see if it work

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread markgoldin_2000
Files? Hmm, not sure I can get something in short period of time. Why dont you send me a sample you are working with and will take a look? --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > I tried with ADG and I got the same result...doesn't work... > I must have some

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread quantum_ohm
ok, thx, I send you a mail. (hope so, not sure how that works) --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > Files? Hmm, not sure I can get something in short period of time. > Why dont you send me a sample you are working with > and will take a look?

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread dougco2000
My advice is to make the itemrenderer a separate component and use the dataChange event in that component. I have an example at http://blog.dougco.com/coding/flex/datagrid-with-multiple-pulldowns/ Hope that helps, -doug --- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]> wrote: >

[flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-25 Thread quantum_ohm
Yes, thx Doug, that's what finally I thought... Simplier (but not so 'clean' as one combo in each column...) I'm in a hurry, so for now I'm going to do this way ! --- In flexcoders@yahoogroups.com, "dougco2000" <[EMAIL PROTECTED]> wrote: > > My advice is to make the itemrenderer a separate compone

RE: [flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-23 Thread Alex Harui
om Subject: [flexcoders] Re: ComboBoxes as ItemRenderer :-( anybody ?? --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "quantum_ohm" <[EMAIL PROTECTED]> wrote: > > Hi All ! > > here is my problem since days : > > I have a combobo

RE: [flexcoders] Re: ComboBoxes as ItemRenderer

2008-03-24 Thread Alex Harui
, 2008 6:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ComboBoxes as ItemRenderer Hi Alex, thx for responding ! Is there a particular sample on your blog which will be close to what I'd like to do ? I've check out your blog, but I get lost with all the samples... Regard