How to resize the width of row Header in OlapDataGrid

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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....
    2. 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...
    3. 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,...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default 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

  10. #9

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139