Re: [flexcoders] invalidateList or itemUpdated?
Ok. I finally solved it by defining a bindable global variable in the application and adding the following to the mxml of the item: borderColor={app.strongNodes.contains(data) ? COLOR_STRONG_NODE : COLOR_DEFAULT_NODE} Cheers, D. olme wrote: Hi, Did this solution work? I have done something similar for changing the border colors of the nodes of a graph but it does not work. I had an array as a globally scoped variable, and in the item renderer, if the item is in the array, then the border should be of one color, otherwise another. I made a local variable in the item bound to the array. However, when I change the array using the methods, it does not seem to trigger a refresh in the item renderers. I also tried to register for the PropertyChange event but it does not seem that it is ever raised. Thank you for the help. Haykel BEN JEMIA wrote: 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 -- View this message in context: http://www.nabble.com/invalidateList-or-itemUpdated--tp19619359p20441351.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] invalidateList or itemUpdated?
Hi, Did this solution work? I have done something similar for changing the border colors of the nodes of a graph but it does not work. I had an array as a globally scoped variable, and in the item renderer, if the item is in the array, then the border should be of one color, otherwise another. I made a local variable in the item bound to the array. However, when I change the array using the methods, it does not seem to trigger a refresh in the item renderers. I also tried to register for the PropertyChange event but it does not seem that it is ever raised. Thank you for the help. Haykel BEN JEMIA wrote: 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 -- View this message in context: http://www.nabble.com/invalidateList-or-itemUpdated--tp19619359p20434414.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] invalidateList or itemUpdated?
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
[flexcoders] invalidateList or itemUpdated?
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