:-( 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
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
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
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
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.
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 ?
>
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
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
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
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
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
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
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
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 ?
>
>
>
> --
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
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
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?
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:
>
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
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
, 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
21 matches
Mail list logo