sorry work fine, thank you very much, i'm dog tired, now i go home bye bye Devis Clint Modien ha scritto:
> 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 > <http://us.ard.yahoo.com/SIG=129c033q7/M=298184.6191685.7192823.3001176/D=groups/S=1705007207:HM/EXP=1111603565/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> > > > > > ------------------------------------------------------------------------ > *Yahoo! Groups Links* > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/flexcoders/ > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

