------ Message transféré > De : Laurent CUCHET <[EMAIL PROTECTED]> > Répondre à : <flashcoders@chattyfig.figleaf.com> > Date : Wed, 06 Jun 2007 13:04:07 +0200 > À : Flashcoders mailing list <flashcoders@chattyfig.figleaf.com> > Conversation : >> AS2 Datagrid + invisible row > Objet : [Flashcoders] >> AS2 Datagrid + invisible row > > Good Morning > > I have done a listener to fill datagrid. It works but I need to hide or make > invisible a row How can do ?? > > Thank you > > var myListener1:Object = new Object(); > myListener1.dataLoaded = function(success:Boolean, xmldata:XML) { > if (success) { > trace(xmldata); > if (comStatus == "loading") { > display.removeAllColumns(); > display.columnNames = ["ONE", "TWO", "THREE","FOUR"];// just cut "FOUR" : display.columnNames = ["ONE", "TWO", "THREE"]; > display.getColumnAt(0).width = 120; > display.getColumnAt(1).width = 100; > display.getColumnAt(2).width = 115; > display.getColumnAt(3).width = 0;// it doesnt work how can I do > ? > var dat:Array = new Array(); > for (var i:Number = 0; > i<xmldata.firstChild.childNodes[3].childNodes.length; i++) { > > dat.push({ONE:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childN > odes[15].childNodes), > > TWO:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[3].ch > ildNodes), > > THREE:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[7]. > childNodes), > > FOUR:unescape(xmldata.firstChild.childNodes[3].childNodes[i].childNodes[5].c > hildNodes) > }); > } > display.dataProvider = dat; > msg = "Data has loaded Successfully"; > } else if (comStatus == "sending") { > msg = "Data Sent Successfully. You can now reload!"; > } > } > }; > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com
------ Fin du message transféré _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com