Amy
Thu, 26 Jun 2008 15:04:55 -0700
--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Jonathan Branam" > <jonathan.lists@> wrote: > > > > There are a bunch of comments below, but to sum up, it seems like > extending > > AdvancedDataGridGroupItemRenderer and drawing a background with the > graphics > > property will meet all of your needs. I missed the requirement to > preserve > > leaf icons and such. Is there a reason this doesn't meet your > needs, because > > you seem to have known this already? > > I didn't know that I could use my patched > AdvancedDataGridGroupItemRenderer as the regular itemRenderer as well > and have it just work. I assumed that there are two distinctly and > yes irritatingly different classes for a reason. > > It turns out I am having a problem dynamically setting the icon on > leaf nodes... when I use an iconFunction, the function returns the > right thing but it is never drawn (even with changing out the > itemRenderer). When I use a groupIconFunction, it only runs for the > items that are parents.
That, at least, was solved relatively painlessly. Before I realized there were two different classes handling the rendering, I forced the first column to my patched regular ADGItemRenderer (because that put the color in more rows in that column). So the only time it used my GroupItemRenderer was when it actually was displaying a group, which seems to override the hardcoded itemRenderer.