flexlib pusher ;)
On Sat, May 31, 2008 at 4:11 PM, Douglas Knudsen <[EMAIL PROTECTED]> wrote: > personally I'd use a 'window shade' approach, not the ADG or DG. Simple, > effective, and should be fast as you should be able to set > recylceChildren=true on any Repeater if you are going to use MXML. > > Have a look at the windowshade component out on flexlib > http://code.google.com/p/flexlib/ > > DK > > ...what was that shadow that just passed through here? :) > > On Sat, May 31, 2008 at 11:08 AM, Dale Bronk <[EMAIL PROTECTED]> wrote: >> >> I have set the variableRowHeight to true and did not set the rowHeight. >> Here is what I'm looking for… >> >> >> >> >> >> I have 3 columns: >> >> Column 1 is a tree >> >> Column 2 is a calculated total >> >> Column 3 is colored bar (length is variable and color is variable >> depending on the calculated total) >> >> >> >> Each level of the tree will have the total and bar column. There is only >> 2 levels in this tree. The outer level of the tree (branch node) I want all >> text to be bold and an added 5 pixels as top padding. The inner level of >> the tree (leaf node) I want normal fontWeight and the rowHeight to be less >> than the outer node by about 85%-ish. I'll play with that number once I get >> it working. >> >> >> >> What this will give is the outer level will be full size and bold and then >> the inner levels will be "squashed" together a bit to further give the UI >> the look that the inner rows are subordinate to the outer node. I can get >> away with not being able to set the rows shorter if I can successfully add a >> top padding to each outer node. That will separate each outer node just a >> bit from the section above it. >> >> >> >> The reason I need this is that it becomes hard for the user to denote when >> each section starts/stops when focusing on the bars. So if each major >> section could at least have a small gap I'm sure I could make that pass. >> I'm not sure if this forum allows me to include an image snapshot, but I'm >> including a snapshot of what I have and what I want. >> >> >> >> This is what I have: >> >> >> >> This is what I want: This is just an image created by our graphics guy. >> We have already discussed and we are not having the gray shaded area. >> >> >> >> I know that I could break this up into possibly a repeater and repeat at >> each main section level, but then I've got the added code to take care of to >> not have each section have it's own scroll bars and to expand/collapse >> correctly, etc. So the AdvancedDataGrid seems to be the best component for >> this. >> >> >> >> Thanks, >> >> Dale >> >> >> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of AppDeveloper >> Sent: Friday, May 30, 2008 11:28 PM >> To: [email protected] >> Subject: Re: [AFFUG Discuss] Variable row height in AdvancedDataGrid >> >> >> >> Have you explored the variableRowHeight property / attribute of your >> <mx:AdvancedDataGrid> tag? This allows the height of the control to adjust >> in height based on the content provided to the cell or row. If you don't >> set the variableRowHeight attribute in the tag, the default is false. >> Happily, if you by mistake have defined the rowHeight as well in the tag, >> flex ignores the defined height you provided and goes on it's merry way of >> giving you AdvancedDataGrid the adjustable row height. >> >> >> >> Example: <mx:AdvancedDataGrid variableRowHeight="true" /> >> >> >> >> If you aren't already using it, you may want to use the wordWrap attribute >> if your content is overflowing. >> >> As for your variable row gaps, have you tried giving a value to the >> verticalGap attribute? >> >> >> >> If you had something different in mind, please to give more detail. You >> can programmably build your AdvancedDataGrid will a tidy bit of AS code. >> >> >> >> >> >> >> >> On Fri, May 30, 2008 at 5:45 PM, Dale Bronk <[EMAIL PROTECTED]> wrote: >> >> I have an AdvancedDataGrid with one of the columns being a tree. I'm >> trying to accomplish a couple things and having problems. >> >> >> >> 1. Depending on the data, I want to adjust the rows height. >> >> 2. Depending on the data, I want to adjust the gap between the rows. >> >> >> >> Any advice/suggestions/examples are appreciated. >> >> >> >> Thanks, >> >> Dale >> >> >> >> >> >> ------------------------------------------------------------- >> To unsubscribe from this list, simply email the list with unsubscribe in >> the subject line >> >> For more info, see http://www.affug.com >> Archive @ http://www.mail-archive.com/discussion%40affug.com/ >> List hosted by FusionLink >> ------------------------------------------------------------- >> >> ------------------------------------------------------------- >> To unsubscribe from this list, simply email the list with unsubscribe in >> the subject line >> >> For more info, see http://www.affug.com >> Archive @ http://www.mail-archive.com/discussion%40affug.com/ >> List hosted by FusionLink >> ------------------------------------------------------------- >> >> ------------------------------------------------------------- >> To unsubscribe from this list, simply email the list with unsubscribe in >> the subject line >> >> For more info, see http://www.affug.com >> Archive @ http://www.mail-archive.com/discussion%40affug.com/ >> List hosted by FusionLink >> ------------------------------------------------------------- > > > -- > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > ------------------------------------------------------------- > To unsubscribe from this list, simply email the list with unsubscribe in the > subject line > > For more info, see http://www.affug.com > Archive @ http://www.mail-archive.com/discussion%40affug.com/ > List hosted by FusionLink > ------------------------------------------------------------- -- Darin Kohles RIA Developer ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
