Missed the end bracket when I cut and
paste
myColumn.labelFunction =
mx.utils.Delegate.create(this,getRiferimento)
should look like that… (with the
closing end backet)
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 22, 2005
11:43 AM
To: [email protected]
Subject: Re: [flexcoders]
LabelFunction problem
Thank's
but
myColumn.columnName(mx.utils.Delegate.create(this,getRiferimento));
myColumn.columnName=mx.utils.Delegate.create(this,getRiferimento);
flex throws an compile error
1)Type mismatch in assignment statement: found
Function where String is
required.
2)A function call on a non-function was attempted.
Devis
Any idea? please
Clint Modien ha scritto:
>I think your problem is where you set the
labelFunction
>
>Should look like this...
>
> myColumn.labelFunction =
mx.utils.Delegate.create(this,
>getRiferimento);
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 22, 2005 10:43 AM
>To: Flex Coders
>Subject: [flexcoders] LabelFunction problem
>
>
>Hi,
>if you can look my code please, this
labelFunction don't work display
>nothing, but if i don't use dyn
dataGridcolumn for examples
><mx:DataGridColumn
labelFunction="getRiferimento" headerText="Rif"
>width="50"/> work fine.
>Can you help me
>Devis
>
> function Init_Taglie()
> {
>
dgsviluppo.removeAllColumns();
>
var myColumn: DataGridColumn= new DataGridColumn();
>
>
myColumn.headerText = "Rif";
>
myColumn.width=50;
>
myColumn.labelFunction (getRiferimento());
>
dgsviluppo.addColumn(myColumn);
>
>
>
myColumn =new DataGridColumn();
>
myColumn.headerText = "Descrizione";
>
myColumn.width=100;
>
myColumn.columnName="de50sv";
>
dgsviluppo.addColumn(myColumn);
>
>
>
for(var row=0;row<taglie.length;row++)
>
{
>
>
myColumn= new DataGridColumn();
>
myColumn.headerText = taglie[row];
>
myColumn.width=50;
>
myColumn.columnName="tga"+(row+1)+"sv";
>
dgsviluppo.addColumn(myColumn);
>
}
>
>
dgsviluppo.dataProvider=vosviluppo;
>
> }
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
| Yahoo! Groups Sponsor |
ADVERTISEMENT
![click here]() | |
![]() |
Yahoo! Groups Links