You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Mihai Chira (JIRA)" <ji...@apache.org> on 2014/07/01 12:59:24 UTC

[jira] [Commented] (FLEX-32541) sortable ou sortableColumns = false still shows box of sorting and sortItemRenderer = null throws error

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

Mihai Chira commented on FLEX-32541:
------------------------------------

I'm not sure if it's usually null, but I am sure that there are null checks for sortItemRendererInstance everywhere else in the class except for that function.

> 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)