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

Alex Harui commented on FLEX-32541:
-----------------------------------

I don't know the code that well, but isn't sortItemRendererInstance usually 
null?  If so, the patch would defeat most of the code that follows in most 
scenarios.

> sortable ou sortableColumns = false still shows box of sorting and 
> sortItemRenderer = null throws error
> -------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-32541
>                 URL: https://issues.apache.org/jira/browse/FLEX-32541
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Adobe Flex SDK Previous, Apache Flex 4.12.1
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Alex Harui
>            Priority: Minor
>             Fix For: Apache Flex 4.12.2
>
>         Attachments: FLEX-32541.patch, _sortItemRendererNullRTE.fxp
>
>
> Steps to reproduce:
> 1. Run Teste.mxml. First and second columns of first AdvancedDataGrid are 
> sortable = false, but same thus shows the box of sorting.
> 2. Click at button, the first collomn shows the arrow of sorting, this is 
> sortable = false.
> 3. At second AdvancedDataGrid sortItemRenderer="{null}", but throws error 
> below when mouse over the headers.
> TypeError: Error #1009: Não é possível acessar uma propriedade ou um método 
> de uma referência de objeto nula.
>       at 
> mx.controls.advancedDataGridClasses::AdvancedDataGridHeaderRenderer/mouseEventToHeaderPart()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\advancedDataGridClasses\AdvancedDataGridHeaderRenderer.as:738]
>       at 
> mx.controls::AdvancedDataGrid/mouseOverHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6493]
>       at 
> mx.controls.listClasses::AdvancedListBase/mouseMoveHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:8119]
>  
> SDK 3.3 
> DMV 3.3
> Workaround:
> Class ADGHeaderRenderer
>  
> Expected Results:
> Box of sorting don't shows when sortable ou sortableColumns = false or 
> sortItemRenderer = null.
> Please, sorry my poor English.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to