Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Error handling 高级数据网格事件处理_Error Handling_Advanceddatagrid - Fatal编程技术网

Error handling 高级数据网格事件处理

Error handling 高级数据网格事件处理,error-handling,advanceddatagrid,Error Handling,Advanceddatagrid,我的项目中有一个高级数据网格。当我加载它超过2次时,我得到以下错误 TypeError:Error#1010:术语未定义且没有属性。 在myComponents::GridCellFormatted/updateDisplayList()上 在mx.core::UIComponent/validateDisplayList()中 在spark.components::Group/validateDisplayList()中 在mx.managers::LayoutManager/validate

我的项目中有一个高级数据网格。当我加载它超过2次时,我得到以下错误

TypeError:Error#1010:术语未定义且没有属性。 在myComponents::GridCellFormatted/updateDisplayList()上 在mx.core::UIComponent/validateDisplayList()中 在spark.components::Group/validateDisplayList()中 在mx.managers::LayoutManager/validateDisplayList()中 在mx.managers::LayoutManager/doPhasedInstantiation()处 在mx.managers::LayoutManager/dophasedinstationcallback()处


加载fine时,将触发updatecomplete事件。但是,当出现此错误时,它似乎不会触发更新完成事件。我能看到这个错误的唯一方法是因为我安装了调试器。我是否可以使用一个事件来捕获在尝试加载高级数据网格时发生的任何错误?谢谢。

您可以使用initialize并拥有一个包含少量跟踪语句的处理程序,以向您提供更多信息

<s:AdvancedDataGrid id="adDataGrid" width="100%" height="100%" 
                                        initialize="adDataGrid_itemClickHandler(event)">

 protected function adDataGrid_initializeHandler(event:FlexEvent):void
 {
     // TODO Auto-generated method stub
     trace(..);

 }

受保护函数adDataGrid_initializeHandler(事件:FlexEvent):无效
{
//TODO自动生成的方法存根
痕迹(…);
}

显示GridCellFormatted的代码。updateDisplayList方法中存在错误。