I am using an ADG with a bound HierachicalData object and cannot get the correct data when clicking on a row. Clearly I didn't read the docs and know that someone here would like 10 smashing points ;0)
When the rows with child nodes are collapsed, clicking a row allows me to match the rowIndex against the dataprovider source. However, if any of the parent rows are expanded the row indexing is advanced from that point, and so the rowIndex cannot be used to reference the data providers source.
How do I reference the underlying data, so that I can check and see if it is a parent or child?
Thanks...10 great big shiny points to the winner!
The data is hierarchical, you should traverse it in the following manner -
var cursor:IViewCursor = (adg.dataProvider as IHierarchicalCollectionView).createCursor(); cursor.seek(CursorBookmark.FIRST, index); var item:Object = cursor.current;
What is "index"?
Is that the index of the selected row?
Figured it out, thx! 10 big smashing points coming your way!