You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Bharath (JIRA)" <ji...@apache.org> on 2013/04/02 03:35:15 UTC

[jira] [Commented] (FLEX-33450) RTE - PopupManager mx.controls.DataGrid

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

Bharath commented on FLEX-33450:
--------------------------------

Thanks for this hack Alex. We also have a ComboBox in the lower dg and the [preventDefault()] prevents the focus, in some use-cases, to this ComboBox because the target is not equal to getFocus(). I modified the hack to handle the ComboBox as follows and seems to fix the issue  for ComboBox although I haven't tested for other controls. Is there a better way to handle this generically? Your thoughts please..

public function hack(event:DataGridEvent):void
{
if (flash.utils.getQualifiedClassName(getFocus()) == "mx.controls::ComboBox") return;
if (event.target != getFocus())
{
trace("not us");
event.preventDefault();
}
}


                
> RTE - PopupManager mx.controls.DataGrid
> ---------------------------------------
>
>                 Key: FLEX-33450
>                 URL: https://issues.apache.org/jira/browse/FLEX-33450
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DataGrid, PopUp Manager
>    Affects Versions: Adobe Flex SDK 4.5 (Release), Apache Flex 4.9.0
>         Environment: Internet Explorer 8, Windows 7, FlashPlayer version [WIN 11,4,402,287]
>            Reporter: Bharath
>            Assignee: Alex Harui
>            Priority: Blocker
>         Attachments: TestPopup.fxp
>
>
> I'm getting a Runtime Exception on Internet Explorer [TypeError: Error #1009: Cannot access a property or method of a null object reference.] when showing DataGrids on a TitleWindow using PopupManager. It works fine on FireFox. Unfortunately, all our users prefer Internet Explorer.
> 1) Open a TitleWindow from the main application.Two DataGrids are laid on a TitleWindow vertically. 
> 2) Click into an editable column on the FIRST DataGrid and type something.
> 3) Move your mouse to another application (For eg., Outlook). 
> 4) Now click into an editable column on the SECOND DataGrid.
> 5) The following exception is raised and the screen goes BLACK.
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
> 	at mx.controls::DataGrid/itemEditorItemEditBeginHandler()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/mx/src/mx/controls/DataGrid.as:5287]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/core/UIComponent.as:13160]
> 	at mx.controls::DataGrid/commitEditedItemPosition()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/mx/src/mx/controls/DataGrid.as:4115]
> 	at mx.controls::DataGrid/updateDisplayList()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/mx/src/mx/controls/DataGrid.as:1822]
> 	at mx.controls.listClasses::ListBase/validateDisplayList()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as:3968]
> 	at mx.managers::LayoutManager/validateDisplayList()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/managers/LayoutManager.as:744]
> 	at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/managers/LayoutManager.as:827]
> 	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]
> 	at flash.utils::Timer/_timerDispatch()
> 	at flash.utils::Timer/tick()

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