AdvancedDataGrid columns resizing is buggy

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

  1. #1

    Default AdvancedDataGrid columns resizing is buggy

    Resizing columns in an AdvancedDataGrid seems really buggy. Sometimes
    all columns shrink except one that becomes way too big. Sometimes you try to
    enlarge a column but when you release the mouse buton it shrink instead.

    Am I the only one with those column resizing problem in AdvancedDataGrid? We
    even had to add a "resizable = false;" to all columns because of this.

    tata668@gmail.com Guest

  2. Similar Questions and Discussions

    1. How to add columns to AdvancedDataGrid at runtime?
      Hi... Am working with Advanced Datagrid.. Any idea how to add columns into AdvancedDatagridColumnGroup at runtime.? means i need to call a...
    2. resizing columns questions
      I want to resize several columns in a table without changing the width size of the entire table. I understand that I can hold down the shift key...
    3. buggy flash or buggy pc?
      Hi NG! Would you please try to open that site http://pm-trainings.de/__dev/ focusing on the flash in the left frame? The site works absolutely...
    4. Columns and Inherited Datagrid...Active Schema does not support columns
      I have a class which has inherited from datagrid, to provide some custom functionality, row select, mouse overs etc All is working fine apart from...
    5. Pad strings/concatenate columns to simulate data columns in ASP select box with SQL Server 2K
      Dale, Cast all the data to fixed character data type in your select statement. For example: select cast(au_id as char(12)) +...
  3. #2

    Default Re: AdvancedDataGrid columns resizing is buggy

    We have not seen this issue. It would help if you can post sample code which shows this behavior.
    Sreenivas R Guest

  4. #3

    Default Re: AdvancedDataGrid columns resizing is buggy

    I'll try to make a shot sample but I don't have lots of time today. But here's a video from our QA team: [url]http://d352384.u25.nozonenet.com/open/ColumnResize.avi[/url]
    tata668@gmail.com Guest

  5. #4

    Default Re: AdvancedDataGrid columns resizing is buggy

    Finally it's really easy to reproduce. The ADG doesn't even need to be binded
    to a dataProvider for the bug to trigger:

    To trigger an example of the buggy behavior, you just have to click (no drag)
    at the right of the "field2" columns. Please, look at the image to know where
    to click:

    image:
    [url]http://d352384.u25.nozonenet.com/open/adgBug.png[/url]

    code:
    -----------------------------------

    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox
    xmlns:mx="http://www.adobe.com/2006/mxml"
    width="100%"
    height="100%"
    initialize="initDgTest()">

    <mx:Script>
    <![CDATA[
    import mx.controls.advancedDataGridClasses.AdvancedDataGr idColumn;

    private function initDgTest():void
    {
    var cols:Array = new Array();
    var col:AdvancedDataGridColumn;

    col = new AdvancedDataGridColumn();
    col.dataField = 'field1';
    col.headerText = 'field1';
    col.width = 310;
    col.resizable = true;
    cols.push(col);

    col = new AdvancedDataGridColumn();
    col.dataField = 'field2';
    col.headerText = 'field2';
    col.width = 50;
    col.resizable = true;
    cols.push(col);

    col = new AdvancedDataGridColumn();
    col.dataField = 'field3';
    col.headerText = 'field3';
    col.width = 100;
    col.resizable = true;
    cols.push(col);

    col = new AdvancedDataGridColumn();
    col.dataField = 'field4';
    col.headerText = 'field4';
    col.width = 100;
    col.resizable = true;
    cols.push(col);

    dgTest.columns = cols;
    }

    ]]>
    </mx:Script>

    <mx:AdvancedDataGrid
    id="dgTest"
    width="100%" />

    </mx:VBox>

    ------------------------

    tata668@gmail.com Guest

  6. #5

    Default Re: AdvancedDataGrid columns resizing is buggy

    Any news if this is an official bug?
    tata668@gmail.com Guest

  7. #6

    Default Re: AdvancedDataGrid columns resizing is buggy

    I'm not able to reproduce this issue.
    I just copied the code you have given in a new mxml application. Do I need to do anything else to reproduce this issue.

    Note: I'm using Flex 3 Released.
    sameerb Guest

  8. #7

    Default Re: AdvancedDataGrid columns resizing is buggy

    Hi,

    Thanks for the reply.

    Here, everyone is able to reproduce the bug using the provided code.

    Flex Builder 3 pro, release version. Version: 3.0.194161
    tata668@gmail.com Guest

  9. #8

    Default Re: AdvancedDataGrid columns resizing is buggy

    Also ran into this bug using FB3. Using standard DataGrid here.

    Seems when you set the width of a column its ignored.

    PreferedWidth and explicitWidth are correct but Width is as was originally.

    My issue is I Show/Hide the grid an someitmes I Hide/Show the last column,
    even setting widths explicitly they are still ignored.


    tntomek Guest

  10. #9

    Default Re: AdvancedDataGrid columns resizing is buggy

    Bump, thank you.
    tata668@gmail.com Guest

  11. #10

    Default Re: AdvancedDataGrid columns resizing is buggy

    Any news about this? Thank you.
    tata668@gmail.com Guest

  12. #11

    Default Re: AdvancedDataGrid columns resizing is buggy

    if I am not wrong then you are pointing out the error that by increasing the
    width of one column why all other columns get shrinked?
    This is infact a problem with ADG horizontal scroll bar. When horzitonal
    scroll policy set to "auto" or "off' this problem occurs. But if you set scroll
    policy equal to "on" then this problem of resizing will not occur

    Mirza Asim Guest

  13. #12

    Default Re: AdvancedDataGrid columns resizing is buggy

    Theoratically, when scroll policy set to "auto", scroll bar should be appeared and columns on the right should go out the scroll window instead of shrinking.
    Mirza Asim Guest

  14. #13

    Default Re: AdvancedDataGrid columns resizing is buggy

    [q]Originally posted by: Mirza Asim

    This is infact a problem with ADG horizontal scroll bar. When horzitonal
    scroll policy set to "auto" or "off' this problem occurs. But if you set scroll
    policy equal to "on" then this problem of resizing will not occur[/q]

    Thanks a lot for the reply Mirza Asim!

    I'm gonna try to set the scrollbar to "on".. I'm busy on other things today
    but I'm gonna post my results here when done.





    tata668@gmail.com Guest

  15. #14

    Default Re: AdvancedDataGrid columns resizing is buggy

    Setting the adg.horizontalScrollPolicy to "on" doesn't work.

    The bug still occurs.
    tata668@gmail.com Guest

  16. #15

    Default Re: AdvancedDataGrid columns resizing is buggy

    Any news on this?

    Thank you
    tata668@gmail.com Guest

  17. #16

    Default Re: AdvancedDataGrid columns resizing is buggy

    I was in the same situation until I commented headerSeparatorSkin: in my .css file. Without style, everything works fine.

    I hope this help,
    Marta
    Marta Kostova is offline Junior Member
    Join Date
    Dec 2010
    Posts
    1

  18. #17

    Default Re: AdvancedDataGrid columns resizing is buggy

    @ Morta

    I don't think that works, when i tried that, i got the following error

    TypeError: Error #1007: Instantiation attempted on a non-constructor.
    at mx.controls::AdvancedDataGridBaseEx/getSeparator()[E:\dev\4.x\frameworks\projects\datavisualization\s rc\mx\controls\AdvancedDataGridBaseEx.as:4619]
    at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[E:\dev\4.x\frameworks\projects\datavisualization\s rc\mx\controls\AdvancedDataGridBaseEx.as:4661]
    at mx.controls::AdvancedDataGrid/createHeaderSeparators()[E:\dev\4.x\frameworks\projects\datavisualization\s rc\mx\controls\AdvancedDataGrid.as:2428]
    at mx.controls::AdvancedDataGridBaseEx/drawSeparators()[E:\dev\4.x\frameworks\projects\datavisualization\s rc\mx\controls\AdvancedDataGridBaseEx.as:4575]
    at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[E:\dev\4.x\frameworks\projects\datavisualization\s rc\mx\controls\AdvancedDataGridBaseEx.as:2120]
    at mx.controls::AdvancedDataGrid/updateDisplayList()[E:\dev\4.x\frameworks\projects\datavisualization\s rc\mx\controls\AdvancedDataGrid.as:2899]
    at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[E:\dev\4.x\frameworks\projects\datavisualization\s rc\mx\controls\listClasses\AdvancedListBase.as:347 2]
    at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.x\frameworks\projects\framework\src\mx\ma nagers\LayoutManager.as:663]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\ma nagers\LayoutManager.as:718]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\fra
    arigs 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