Binding showButton to Application.application.foo in the item renderer
should do the trick.
On Tue, Sep 23, 2008 at 2:21 AM, david.marr <[EMAIL PROTECTED]> wrote:
> Hi,
> I have an item renderer which checks an application scoped variable to
> determine whether to show a display object. When that variable
> changes, I need to make sure all the item renderers for the listbase
> object (datagrid) i am using are refreshed. What is the best way to do
> this?
>
> the pseudocode for my item renderer would be something like:
>
> if (Application.application.foo) {
> showButton = true;
> } else {
> showButton = false;
> }
>
> then in the Application, I need to somehow update the renderers:
>
> foo.val = true;
> <what do i do here to get the item renderers to update?>
>
> thanks!
> dave
>
>
>
--
Haykel Ben Jemia
Allmas
Web & RIA Development
http://www.allmas-tn.com