Sorry, that is because of the scoping opf the itemRenderer.

 

Use 

visible="{outerDocument.isButtonVisible()}"

 

but still, even when that compiles and works, you still have functional
problems.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tony Obermeit
Sent: Wednesday, April 01, 2009 4:08 AM
To: flexcoders
Subject: [flexcoders] Re: Making button in data grid invisible based on
other columns in

 

Thanks Tracy,

 

I tried that but it wasn't any better.

 

I get error Call to possibly undefined method isButtonVisible.

 

Tried making the function definition bindable (not sure if that makes sense)
but it wasn't successful.

 

I need to set the button to be visible or not on each row of the data grid.

 

Thanks

 

 
<http://groups.yahoo.com/group/flexcoders/message/140097;_ylc=X3oDMTJ0NWI4NW
JoBF9TAzk3MzU5NzE1BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxND
AwOTcEc2VjA2Rtc2cEc2xrA3Ztc2cEc3RpbWUDMTIzODU3MTk2NQ--> Re: Making button in
data grid invisible based on other columns in 

Posted by: "Tracy Spratt"
<mailto:tspr...@lariatinc.com?subject=+re%3a%20making%20button%20in%20data%2
0grid%20invisible%20based%20on%20other%20columns%20in%20t>
tspr...@lariatinc.com    <http://profiles.yahoo.com/nts333rd> nts333rd

Wed Apr 1, 2009 12:36 am (PDT)

Use binding braces:

 

visible="{isButtonVisible()}"

 

However, if you do not pass in a variable that is bindable, the function

will fire only once.

 

Tracy Spratt,

 

Lariat Services, development services available

 

_____ 



Reply via email to