Hi all!! I've designed an extension of AdvancedDataGrid for incorporating a set of customer's commitments about tabular data. All works fine but a single thing: I've the need to (optionally) display the total number of elements in data provider just above the datagrid, such as:
Rows: 10/87 ---------------------------------- | header 1 | header 2 | header 3 | ---------------------------------- | | | | | | | | | | | | ---------------------------------- I've tried to implement that by adding a "Label child" just above the datagrid: override protected function createChildren() : void { this._lblNumberOfRows = new Label(); this._lblNumberOfRows.text = "I'm a try!"; this.addChild(this._lblNumberOfRows); super.createChildren(); } override protected function measure() : void { super.measure(); this.measuredWidth = Math.max(this.measuredWidth, this._lblNumberOfRows.measuredWidth); this.measuredHeight += this._lblNumberOfRows.measuredHeight; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { this._lblNumberOfRows.invalidateDisplayList(); super.updateDisplayList(unscaledWidth, unscaledHeight); } But it seems it doesn't works at all... The label don't get displayed just as I haven't overridden above methods. How can I achieve such task? I have to keep the inheritance from AdvancedDataGrid because I have to rewrite all the other functionalities otherwise... A lot of work :S So I would prefer avoiding to resort to composition of label and datagrid while inheriting from VBox. Thank you very much in advance! ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/