【发布时间】:2011-05-17 19:50:09
【问题描述】:
我使用 textInput 作为数据网格的所有列的 ItemRenderer。我需要将第一行的可编辑性设置为 false。我在 itemRenderer 的 creationComplete 上完成了它。还尝试覆盖 upDateDislayList。 它适用于第一行。但其他一些行也将其可编辑性更改为 false。此外,在滚动时,许多行的可编辑性也会更改。请帮助。
override public function set data(value:Object):void { super.data = value; if(listData.owner.name == "headCountGrid") { if(data != null && qbpHttpServ.rowDataHcGridArr != null) { if(data["column1Data"] == qbpHttpServ.rowDataHcGridArr[0]["column1Data"]) { this.editable = false; } } } } override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void{ super.updateDisplayList(unscaledWidth,unscaledHeight); var g:Graphics = graphics; g.clear(); }
【问题讨论】:
标签: apache-flex actionscript-3 datagrid itemrenderer