Also, you must use the dataProvider API to update the item, in order for the collection to dispatch the events necessary to update the UI. There is also an itemUpdated() method, and several other techniques for causing the UI to refresh.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Sunday, July 06, 2008 11:42 PM To: [email protected] Subject: [flexcoders] Re: Data binding in item renderers --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "michal.sustr" <[EMAIL PROTECTED]> wrote: > > Hi, > > I use custom item renderer in hierarchical advanced datagrid. In the > item renderer, I need some data from the parent node, so in children > property of dataprovider I set an attribute "id" which refers to the > "id" of parent node. In the item renderer I just loop the original > dataprovider and find the node with specified "id" (given through > children property). > > Now the question is, how to resolve data binding? When I change some > data in original dataprovider, the item renderer does not show > immediately the changes, only after parent node is collapsed and > expanded again. > You can cast HierarchicalData to HierarchicalCollectionView for the purposes of being able to use getParentIteem(). What are you doing in the itemRenderer that is supposed to be showing the change?

