Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
PostalFlex #1
How to resize the width of row Header in OlapDataGrid
First question :
I would like to resize the rows Header of my OlapDataGrid, how can I do ?
Second question :
I have an OlapDataGrid included in a DividedBox, and the width of the last
cell is bigger than the other ones i don't understand why, have you got an idea
?
PostalFlex Guest
-
why olapdatagrid always show only one olapmeasure?
I have defined two olapmeasures in olapcube, but the olapdatagrid always shows the first defined olapmeasure,and the second measure don't show.... -
I know we can set max image width, but I need to set itby region. Region A has one max width; Region B another.
We can already set a maximum image width for use globally, throughout every page. Can we do it by region? This way one region can have a max... -
Display of an olapDataGrid, formatter
Is it possible to send a formatter ? In fact I would like to apply a formatter after the value is analysed. I tried something but it doesn't work,... -
Column width can't be set when hiding header?
I just noticed a possible issue with the datagrid today. I have 4 bound columns in a datagrid and I unchecked "Show header" because I don't want the... -
DG Column Width vs Table Column Width
Hi, I am wanting to display data in a datagrid with additional header rows above it that categorise some of the main headers of the datagrid. I... -
travisdh1 #2
Re: How to resize the width of row Header inOlapDataGrid
I can answer you're first question at least. Just use the headerHeight="#" property where you define OlapDataGrid.
travisdh1 Guest
-
javamonjoe #3
Re: How to resize the width of row Header inOlapDataGrid
Second question: All of the cells except the last are taking a default width. The last cell is taking whatever is left over.
javamonjoe Guest
-
PostalFlex #4
Re: How to resize the width of row Header inOlapDataGrid
[q]Originally posted by: javamonjoe
Second question: All of the cells except the last are taking a default width.
The last cell is taking whatever is left over.[/q]
Is there any way to fix it ?
PostalFlex Guest
-
PostalFlex #5
Re: How to resize the width of row Header inOlapDataGrid
[q]Originally posted by: travisdh1
I can answer you're first question at least. Just use the headerHeight="#"
property where you define OlapDataGrid.[/q]
Thanks but this is not what I want. In fact, i would like to set the size of
the first header.
If you take a look at this example :
[url]http://livedocs.adobe.com/flex/3/langref/mx/controls/OLAPDataGrid.html[/url]
I want to know how I could set the size of the first column (Product).
PostalFlex Guest
-
Sreenivas R #6
Re: How to resize the width of row Header inOlapDataGrid
You can access the oladDataGrid.columns property after the columns have been
created and set the 0th columns width to a desired value.
Or one can even create a extended control from ODG and set the column width(s)
in a overridden setter for columns.
Sreenivas R Guest
-
PostalFlex #7
Re: How to resize the width of row Header inOlapDataGrid
Thanks,
In order to fix my problem with the width of the last cell,
I've tried that something like that :
And it works
var nb:Number = odg.columnCount;
odg.columns[nb-1].width = odg.columns[nb-2].width;
PostalFlex Guest
-
PostalFlex #8
Re: How to resize the width of row Header inOlapDataGrid
[q]Originally posted by: Sreenivas R
Or one can even create a extended control from ODG and set the column width(s)
in a overridden setter for columns.[/q]
I created an extended control from ODG but I have no access to the code of the
ODG so I don't know in which overriden method i can set the column width
PostalFlex Guest
-
Sreenivas R #9
Re: How to resize the width of row Header inOlapDataGrid
To know where to find the source please read my post here
[url]http://flexpearls.blogspot.com/2008/03/advanceddatagrid-and-olap-source-gets.htm[/url]
l
You need to overrride
overrride public function set columns(value:Array):void
{
super.columns = value;
//set the desired column width here.
}
Sreenivas R Guest



Reply With Quote

