flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34819) DataGrid with locked columns throws exception if dataProvider filter function shrinks values
Date Tue, 08 Nov 2016 01:44:58 GMT

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

Justin Mclean commented on FLEX-34819:
--------------------------------------

Thanks it easy to reproduce the issue. Iot may not be easy to fix it looks to me like the
length inside dataProviderView is not being updated when the list is filtered. The issue is
this line in getDataProviderItem:
{code}
if ((dataProviderView == null) || (rowIndex >= dataProviderView.length) || (rowIndex <
0))
{code}
 The length is 12 rather than the expected 4.

> DataGrid with locked columns throws exception if dataProvider filter function shrinks
values
> --------------------------------------------------------------------------------------------
>
>                 Key: FLEX-34819
>                 URL: https://issues.apache.org/jira/browse/FLEX-34819
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.11.0, Apache Flex 4.12.0, Apache Flex 4.13.0
>         Environment: Windows 7 - from inspection, probably system independent
>            Reporter: Bill Turner
>              Labels: DataGrid, exception, lockedColumnCount
>         Attachments: LockedDataGridTest.fxp, LockedDataGridTest.zip
>
>
> A Spark DataGrid with locked column will throw an "Index out of bounds" exception if
the ArrayCollection dataProvider's filter function reduces the number of elements displayed.
> The DataGrid correctly handles the change of source data if there are no locked columns,
or if the dataProvider itself is changed to the new collection.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message