header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
james
Points:10
Posts:0

11/10/2010 5:24:32 PM

Title: Flex AdvancedDataGridColumnGroup...


I have an ADG with 2 columns. The two columns have a common column group. Simple enough. However, the height of each column is 50 to hold a large font. I am noticing that the group height above the two columns is the same 50 high. I want it to be 10 high. How do I achieve this?



1
Andrid
Points: 720
Posts:0
11/11/2010 12:03:41 AM



check these links to set variable row height

http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/

http://www.flex888.com/712/datagrid-with-flexible-row-height.html

2
james
Points: 10
Posts:0
11/11/2010 8:16:51 AM



Thanks! That works great for the rows of data but I'm looking to change the height of the grouped header above the normal header. You can set the height of the header easily but if you are using grouped columns, they seem to share the same height.

Take a look at the image at this link. http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_09.html

You can see the text "Revenues" happens to be the same height as the text "Actual" and "Estimate" below it. If you set the headerHeight to 100, all three would be 100 high. I have large text in the lower box and small text in the upper box but I can't seem to separate the heights.

3
Mike Twain
Points: 0
Posts:0
11/11/2010 9:54:25 AM



there is no direct method for this, The solution could be to extend the advancedDataGrid and override the function in the class which setts the row height for grouped fields.

4
james
Points: 10
Posts:0
11/11/2010 10:19:03 AM



Thanks! I've looked at the datagrid source and the heights (non-group, group) are all tied together which means you can't do it with the stock datagrid.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions