Wouldn't it be better if I used listData.item in my renderer instead of the grids selectedItem?
Do you also know how my custom renderer can know when any children of the group get updated. Currently the only way I could figure out how to do this was to get the renderer to add a CollectionChange event listener to the array collection that is the source for the groupingcollection of dataProvider. --- In [email protected], "sameerbhatt13" <[EMAIL PROTECTED]> wrote: > > var item:Object = adg.selectedItem; // get the object corresponding to > the row. If you select a row, then use adg.selectedItem. > > if (gc.canHaveChildren(item)) // if item can have children, it is a > group row > { > trace("Group Row"); > // fetch the Children Collection > var children:ICollectionView = > IHierarchicalCollectionView(adg.dataProvider).getChildren(item); > } > else > { > trace("Leaf Row"); > } > > Thanks, > Sameer > > --- In [email protected], "reflexactions" > <reflexactions@> wrote: > > > > When the user clicks into my custom cell renderer control in a group > > row: > > > > 1) How can I tell I am in a group row? > > > > 2) How can I access the child rows of that group? > > > > actually I also need to know at any time whether I am rendreing a group > > row or not... > > > > > > tks > > >
