This content has been marked as final. Show 4 replies
"Sar975" <firstname.lastname@example.org> wrote in message
>I have a custom tree renderer:
> <mx:Tree id="geographyTree"
> width="500" height="335"
> which displays an expandable list with items that you can check an
> checkbox. When the user checks a checkbox in the list it will update a
> list on the right hand side of the form. If you remove that selected item
> the summary list it updates the categoryList which items should be checked
> unchecked but does not update the display of the checked items on the left
> side custom rendered tree until I move my mouse over the item which I
> So my question is how can I refresh this tree object when I remove an
> from my right hand side summary list instead of waiting until the
> mouseover to
> accurately display the tree? I tried to use invalidateDisplayList(); but
> does nothing. Any help is appreciated. Thanks.
How are you removing items from the summary list?
As Amy asks. Also, what data type is "categoryList"?
categoryList is of type XML. The summary list is a seperate list object so not so relevant to the solution only that when I remove an item from the summary list I want to trigger the event updateDisplayList of the custom tree rendered which will then correctly display the checked items. Right now this only happen when I move the mouse over the displayed categoryList.
I resolved my issue. The solution was to reference the tree's invalidateList() method when removing an item from the summary list. This causes the list to refresh the checkboxes state.