[ 
https://issues.apache.org/jira/browse/FLEX-33272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505587#comment-13505587
 ] 

Carol Frampton commented on FLEX-33272:
---------------------------------------

The best suggestion I can make is that you move the change I made into your 
4.5.1 sources and rebuild advancedgrids.swc.  Otherwise this seems to work 
although it adjusts the horizontal scroll position when columns are made not 
visible.

                        private function menu_change(evt:MenuEvent):void 
                        {
                                var lockedColumnCount:int = 
grid.lockedColumnCount;
                                for each (var advg:AdvancedDataGridColumn in 
grid.groupedColumns)
                                {
                                        if (advg.headerText==evt.item.label)
                                        {
                                                var visible:Boolean = 
popupmenubutton1.dataDescriptor.isToggled(evt.item);
                                                if (!visible && 
lockedColumnCount > 0)
                                                        
grid.horizontalScrollPosition = 0;
                                                advg.visible = visible;
                                        }
                                }
                        }

                
> A #1010 error occurred while trying to hide columns of an AdvancedDataGrid 
> having lockedColumnCount greater than 0
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33272
>                 URL: https://issues.apache.org/jira/browse/FLEX-33272
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Adobe Flex SDK 4.5.1 (Release)
>         Environment: windows 7, IE9, FP 11.4
>            Reporter: Saber Chebka
>            Assignee: Carol Frampton
>            Priority: Blocker
>              Labels: AdvancedDataGrid,, hide, lockedColumnCount
>             Fix For: Apache Flex Next
>
>         Attachments: AdvancedDGBug.mxml, Image 4_2012-11-20 14 12 03.png
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Steps to reproduce:
> 1- Run source on Flash builder
> 2- Scroll the datagrid horizontally to the most right till hiding 
> "Description5" column
> 3- Hide the 'Voiture' column from the popup menu button
> A #1010 error is fired.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to