History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: FLEXDMV-1633
Type: Bug Bug
Status: Closed Closed
Resolution: Not a Bug
Priority: C C
Assignee: Srinivas Annam
Reporter: Alex
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Flex Data Visualization Components

AdvancedDataGrid: header textAlign style always center

Created: 02/11/08 10:15 AM   Updated: 07/23/08 08:11 AM
Component/s: ADG:Display
Security Level: Public (All JIRA Users )

File Attachments: 1. File adg.mxml (2 kb)
2. File adg.swf (547 kb)
3. XML File HeaderAlignFixed.mxml (0.7 kb)


Severity: Non Functioning
Reproducibility: Every Time
Discoverability: High
Found in Version: SDK Moxie RC4
Affected OS(s): Windows - XP
Steps to Reproduce:
Steps to reproduce:
1. Run attached swf, observe difference between DataGrid and AdvancedDataGrid. (demo derived from a sample app at http://flexpearls.blogspot.com/2007/07/customizing-headers-in-dgadg.html)

Best I know this worked in Flex 3 beta 2 (or at least the default horizontal text alignment for ADG column headers had been "left" ), I changed my DataGrid and DataGridColumn components to their Advanced counterparts when we were using Flex 3 beta 2 and this appeared to have worked; I never delivered that change and now that we've upgraded to Flex 3 beta 3 and I attempt to re-apply this change the column headers are all centered and I don't seem to be able to alter that, while I can with the DataGrid component in Flex 3 Beta 3.

The attached files provide a simple demonstration. Both the grids on the page are using the same styles applied to their headerStyleName attributes
 
 Actual Results:
ADG's headers always centered
DG's headers horizontally aligned as expected as specified by their styles
 
 Expected Results:
Both should be the same
 
 Workaround (if any):
 
 
PS: Comment on this bug reporting form: While there IS a Component: DataGrid in the bug form's Component/s field there is no Component: AdvancedDataGrid
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: Yes
QA Owner: Srinivas Annam
Resolved by: Srinivas Annam
Fixed Version: (Planning) DMV Post Moxie - Next Build
Participants: Alex, Kishan Venkataramana, Rostislav Siryk and Srinivas Annam


 All   Comments      Sort Order:
Kishan Venkataramana - [02/12/08 04:35 AM ]
Sending to IRB. Deferrable.

Srinivas Annam - [02/15/08 06:29 AM ]
This is not a bug.

Unlike DataGrid, AdvancedDataGrid allows user to align the header text both horizontally and vertically. So, we are supposed to use "verticalAlign" & "horizontalAlign" styles for ADG.

Please see the attached sample for more details.

Alex - [02/15/08 08:11 AM ]
The docs for AdvancedDataGridColumn I find via http://livedocs.adobe.com/labs/flex3/langref/index.html shows textAlign (smae a DataGridColumn) as a style for AdvancedDataGridColumn but there's no mention of "verticalAlign" & "horizontalAlign" styles there.

Where does one obtain the list of the supported styles for ADG vs DG?

Thanks



Rostislav Siryk - [07/23/08 08:11 AM ]
@Alex, actually there's a mentions of the horizontalAlign and verticalAlign properties in the doc here: http://livedocs.adobe.com/flex/3/langref/mx/controls/advancedDataGridClasses/AdvancedDataGridHeaderRenderer.html#styleSummary

@Srinivas, it seems there's a much more great new features in the ADG, which only partially described on this page: http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_02.html

Maybe it makes sense to make more complete list of changes / additions in the ADG for quick reference and refer to it from the mentioned page?

And it might make sense to support the 'old' textAlign property in the ADG header, just to avoid this confusion with developers who used textAlign with DG and will try to use with AGD (as Alex and me did)?