You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/24 07:01:18 UTC

[jira] [Updated] (FLEX-17300) After filtering datagrid's dataprovider (arraycollection) not deselecting selectedItem

     [ https://issues.apache.org/jira/browse/FLEX-17300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean updated FLEX-17300:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> After filtering datagrid's dataprovider (arraycollection) not deselecting selectedItem
> --------------------------------------------------------------------------------------
>
>                 Key: FLEX-17300
>                 URL: https://issues.apache.org/jira/browse/FLEX-17300
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Data Binding, mx: DataGrid
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
>            Reporter: Adobe JIRA
>            Priority: Minor
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> 1. Run the app,
> 2. Select any row in the datagrid and click the button.
>  
> 3. If you clicked the first row, the component should still show Test1, otherwise it should show nothing.
>  
>  Actual Results:
> The selectedItem in the datagrid doesn't change when the dataprovider filters the actual item out.
> Even setting the datagrid.selectedItem to null doesn't work.  
>  Expected Results:
> When you click the button after selecting the second or third row, you should see the component at the top clear it's value as it's bound to the selectedItem of the datagrid and that datagrid has filtered out the second and third rows. 
>  
>  Workaround (if any):
>  The only workaround is to explicitly set the datagrid's selectedIndex to -1. (Workaround is commented in the submission).

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