[
https://issues.apache.org/jira/browse/FLEX-23365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean updated FLEX-23365:
---------------------------------
Labels: easytest (was: )
> DataGrid (commitEditedItemPosition) - Error #1010: A term is undefined and
> has no properties.
> ---------------------------------------------------------------------------------------------
>
> Key: FLEX-23365
> URL: https://issues.apache.org/jira/browse/FLEX-23365
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: DataGrid
> Affects Versions: Adobe Flex SDK 3.1 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easytest
>
> Steps to reproduce:
> 1. Create an editable DataGrid with allowMultipleSelection = true.
> 2. Add a button handler that will remove the selected rows from the datagrid
> using the selected indices and then refresh the collection.
> 3. Select multiple rows at the bottom for delete such that the current item
> editor is in a column that is in the last row of the DG.
> 4. Delete the rows and tab back to the datagrid.
>
> Actual Results:
> TypeError: Error #1010: A term is undefined and has no properties.
> at mx.controls::DataGrid/commitEditedItemPosition()
> at mx.controls::DataGrid/updateDisplayList()
> at mx.controls.listClasses::ListBase/validateDisplayList()
> at mx.managers::LayoutManager/validateDisplayList()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/http://adobe.com/AS3/2006/builtin::apply()
> at mx.core::UIComponent/callLaterDispatcher2()
> at mx.core::UIComponent/callLaterDispatcher()
>
> Expected Results:
> No exception.
>
> Workaround (if any):
> Unknown
>
>
> This appears to be happening because the flag "bEditedItemPositionChanged" is
> true and there is no way to turn it off. It will be turned off by DataGrid
> when commitEditedItemPosition() changes the item being edited to
> "_proposedEditedItemPosition".
> I tried setting editedItemPosition to both null and undefined but still the
> same error. Short of subclassing DataGrid and doing a more thorough
> analysis, the fix for this is unknown.
--
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