当前位置: 动力学知识库 > 问答 > 编程问答 >

flex - Error #1010: A term is undefined and has no properties

问题描述:

 /**

* This function shows/hides the child columns

*

* @param event:MouseEvent

*/

private function showHideColumn(event:MouseEvent):void

{

var index:int;

for (index=1; index < this._columnGroup.children.length; index++)

{

this._columnGroup.children[index].visible=this._hideFlag;

}

imgShowHideColumn.source=this._hideFlag ? collapseColumn : expandColumn;

//Instantiate group event, to show/hide corresponding columns in totals grid

var groupEvent:SwtAdvGridColumnGroupEvent=new SwtAdvGridColumnGroupEvent(SwtAdvGridColumnGroupEvent.COLUMN_COLLAPSE_EXPAND);

dispatchEvent(groupEvent);

this._hideFlag=!this._hideFlag;

}

it caused this error when i show/hide columns in advanced data grid,I tried many times but no advancement

TypeError: Error #1010: A term is undefined and has no properties. at

mx.controls::AdvancedDataGridBaseEx/updateSubContent() at

mx.controls::AdvancedDataGridBaseEx/set lockedColumnCount() at

mx.controls::AdvancedDataGrid/commitProperties() at

mx.core::UIComponent/validateProperties() at

mx.managers::LayoutManager/validateProperties() at

mx.managers::LayoutManager/doPhasedInstantiation() at

mx.managers::LayoutManager/doPhasedInstantiationCallback()

please can you help me

分享给朋友:
您可能感兴趣的文章:
随机阅读: