--- In flexcoders@yahoogroups.com, Tom McNeer <tmcn...@...> wrote: > > Amy, > > Thanks for the advice. I'm very new to the ADG, and as you well know, it has > quirks. > > Put a break point into a handler for the event when the row is opened, then > > look in the variables window to see if the data has actually changed. If it > > has, then you'll need to work backward from there to see how and why. > > > I've attempted to do this, creating a function first assigned to the > "itemOpening" attribute of the ADG, then later to the "itemOpen" attribute. > > In neither case does the function appear to be called. There's a breakpoint, > but it's never reached. > > Am I missing something? > > Nevertheless, I put a bogus button in place so I could fire an event that > would let me look at things before and after the tree was opened. > > And things have gotten even weirder. Yes, the underlying data is changing. > The Status is actually being changed within the array collection. > > Worse yet, it's being changed to a value that does not exist anywhere within > the array collection. My test has two groups: in one set of grouped data, > the Status is "Approved"; in the second, the Status is "Denied," When I open > the tree, the Status displays "Pending." > > When I examine all the variables within the component before the tree is > expanded, that string appears nowhere. Nowhere. So clearly, it's being > injected from somewhere else. Not from the server, because Charles shows no > activity. Something inside the app - but outside the component - is changing > the array collection.
In your example data, you _did_ have "Pending" in the second grouping. If your ADG is editable, the possibility is that your retained value is somehow triggering an edit on the wrong item. > Until I can find that, I don't think anyone can help. But I appreciate the > attempt. Did you try changing to getItemAt? If so, what was the result? -Amy