tag:blogger.com,1999:blog-8847948271397805362.post8649487939997220681..comments2022-04-01T09:08:34.216-07:00Comments on Amy's Flex Diary: Musings on AdvancedDataGrid (Part 3)Amy Bhttp://www.blogger.com/profile/10902594300072091444noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8847948271397805362.post-70522538931165478412010-04-07T01:55:28.705-07:002010-04-07T01:55:28.705-07:00Can we use ItemRenderers in 2nd and 3rd depth leve...Can we use ItemRenderers in 2nd and 3rd depth levels of a treecolumn in a tree mode of AdvancedDataGrid?<br /><br />I have been able to use ItemRenderer in the 3rd depth level of an AdvancedDataGrid. <br /><br />If I use ItemRenderer in both the 2nd and 3rd level, then its rendered in the 2nd level but then that cell loses its tree mode i.e. it doesn’t have the “tree collapsing icon”. So there isSunit Waingankarhttps://www.blogger.com/profile/02012527886791247845noreply@blogger.comtag:blogger.com,1999:blog-8847948271397805362.post-44505773430257445042010-01-16T10:04:28.482-08:002010-01-16T10:04:28.482-08:00Because I was styling other things at the same tim...Because I was styling other things at the same time, and it doesn't make sense to have part of the styling handled by the styleFunction, and other parts handled somewhere else.<br /><br />Additionally, correct me if I'm wrong, but the drawRowBackground() function draws the rollover indicator as well, so you'd have to calculate the color of a styled row color based on the style and Amy Bhttps://www.blogger.com/profile/10902594300072091444noreply@blogger.comtag:blogger.com,1999:blog-8847948271397805362.post-51376770009431500322010-01-09T16:56:03.093-08:002010-01-09T16:56:03.093-08:00Er.
Why aren't you just subclassing the grid ...Er.<br /><br />Why aren't you just subclassing the grid and overriding drawRowBackground() ?<br /><br />That means no alpha, no horsing around, the color is the row instead of the embedded control, selection still works as normal, et cetera.John Haugelandhttps://www.blogger.com/profile/07701245705928548668noreply@blogger.comtag:blogger.com,1999:blog-8847948271397805362.post-56212492974013912852009-08-12T07:16:08.651-07:002009-08-12T07:16:08.651-07:00I want to have a Label on my AdvancedDataGridGroup...I want to have a Label on my AdvancedDataGridGroupItemRenderer for a columnSpan =0<br />for example<br /><br />ExpandableColumnRenderer extends AdvancedDataGridGroupItemRenderer{<br />}<br />so that I can show more Items on this ItemRenderer. But, this renderer does not work that way as its not adding child to it.<br /><br />Basically, in a nutshell I want display for topnodes like this<br /><br Unknownhttps://www.blogger.com/profile/04829284150831721068noreply@blogger.comtag:blogger.com,1999:blog-8847948271397805362.post-18625135577559524452009-07-03T05:06:51.141-07:002009-07-03T05:06:51.141-07:00I used AdvancedDatagridGroupItemRenderer to do all...I used AdvancedDatagridGroupItemRenderer to do all the item rendering and it works fine. But when I scrolled the datagrid vertically, the custom background color appeared in other rows that did not satisfy the condition set in the styleFunction. It could be a bug in Flex. Any workaround would be much appreciated.Unknownhttps://www.blogger.com/profile/03597443502074345027noreply@blogger.comtag:blogger.com,1999:blog-8847948271397805362.post-475656952265997552009-05-01T06:57:00.000-07:002009-05-01T06:57:00.000-07:00You don't need to extend AdvancedDataGridGroupItem...You don't need to extend AdvancedDataGridGroupItemRenderer just to change the text style. Use the styleFunction property of the AdvancedDataGrid instead.Amy Bhttps://www.blogger.com/profile/10902594300072091444noreply@blogger.comtag:blogger.com,1999:blog-8847948271397805362.post-18711057278836070062009-05-01T06:16:00.000-07:002009-05-01T06:16:00.000-07:00I was wondering if you could provide some more ins...I was wondering if you could provide some more insight on your extension of AdvancedDataGridGroupItemRender. I'm attempting do modify the style of the label text in the grid depending on the contents but no matter the changes I make in my extension nothing changes in the display. ThanksMichaelhttps://www.blogger.com/profile/03867513751784614157noreply@blogger.com