hi,

Could you please send in the code of the itemRenderer that you are
using in this code?

Thanks
Harish

Flex-QA 
Adobe India.
[EMAIL PROTECTED]

--- In [email protected], "Jonathan Miranda" <[EMAIL PROTECTED]>
wrote:
>
> Wow, we're even getting weirder here. If I reference the dataGrid *at
> all* it loses the first row. The renderer is calling expandFunc when it
> gets clicked (it's a button). Here's my code....(comment the Alert, and
> it works fine. Keep it, and my first row disappears)
> 
>  
> 
> public function expandFunc(e:Event) {
> 
> myLegendICV = new ArrayCollection(myData); 
> 
> LegendDG.dataProvider = myData;
> 
> Alert.show("Here: "+LegendDG,"Alert",Alert.OK);
> 
> }
> 
> public var myData:Array = [{name:'Contact Info',height:50},
> 
> {name:'Overall Quality Rating',height:30},
> 
> {name:'Clinical Services Rating',height:30},
> 
> {name:'Patient Safety Rating',height:30},
> 
> {name:'Safe Practice Rating',height:30},
> 
> {name:'Appropriate Care',height:30},
> 
> {name:'Learn More',height:30}];
> 
> <mx:DataGrid initialize="setData()" creationComplete="placeSelect()" 
> 
>                         sortableColumns="false" selectable="false"
> selectionColor="#FBF2D1" 
> 
>                         rowCount="7" variableRowHeight="true"
> id="LegendDG" height="350" width="200" 
> 
>                         >
> 
>             <mx:columns>
> 
>                         <mx:Array>
> 
>                                     <mx:DataGridColumn
> cellRenderer="custom.renderers.legendRenderer" columnName="name"
> headerText=" "/>
> 
>                         </mx:Array>
> 
>             </mx:columns>
> 
> </mx:DataGrid>
> 
>  
> 
>  
> 
> _________________________________________
> 
> Jonathan Miranda
> 
> Flexible Master of the Web
> 
> "In the game of chess, it's important to never let your opponent see
> your pieces."
> 
> HealthGrades <http://www.healthgrades.com/> : Guiding America to Better
> Healthcare(tm)
> 
> NASDAQ: HGRD
> 
> w  (720) 963-3832
> 
> c  (707) 761-0868
> 
> [EMAIL PROTECTED] 
> 
> _________________________________________
> 
> The message contains confidential and/or legally privileged information
> and is intended for use only by the indicated addressee.  If you are not
> the named addressee you should not disseminate, distribute, or copy this
> e-mail. Please notify the sender immediately by e-mail if you have
> received this e-mail by mistake and delete this e-mail from your system.
> E-mail transmissions cannot be guaranteed to be secure or error-free as
> information could be intercepted, corrupted, lost, destroyed,arrive late
> or incomplete, or contain viruses. The sender therefore does not accept
> liability for any errors or omissions in the contents of this message
> which arise as a result of e-mail transmission. If verification is
> required please request a hard-copy version.
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jonathan Miranda
> Sent: Tuesday, February 21, 2006 2:50 PM
> To: [email protected]
> Subject: [flexcoders] Disappearing Data
> 
>  
> 
> Alright, think I've found a real fun bug. Have fun with this Matt :-)
> 
> I have a datagrid that is populated by an ArrayCollection aka
> ICollectionView. So here I am, trying to figure out why my first row of
> data is disappearing and I found it.
> 
>  
> 
> myLegendICV = new ArrayCollection(myData); 
> 
> LegendDG.dataProvider = myLegendICV;
> 
> Alert.show("Here: "+LegendDG.dataProvider[3].height,"Alert",Alert.OK);
> 
> Alert.show("Here: "+myLegendICV[3].height,"Alert",Alert.OK);
> 
> 
> Guess what 2 lines it is? That's right folks, the Alerts. I comment
> those Alerts out and it works fine. But soon as anywhere I reference a
> specific row of the dataProvider or the ICV directly (even outside the
> alerts), it removes the first line of my dataprovider. I'm assuming it
> has to do with the dataProvider starting at 0 and the ArrayCollection
> starting at 1? If I use a normal array, it goes away.
> 
> _________________________________________
> 
> Jonathan Miranda
> 
> Flexible Master of the Web
> 
> "In the game of chess, it's important to never let your opponent see
> your pieces."
> 
> HealthGrades <http://www.healthgrades.com/> : Guiding America to Better
> Healthcare(tm)
> 
> NASDAQ: HGRD
> 
> w  (720) 963-3832
> 
> c  (707) 761-0868
> 
> [EMAIL PROTECTED] 
> 
> _________________________________________
> 
> The message contains confidential and/or legally privileged information
> and is intended for use only by the indicated addressee.  If you are not
> the named addressee you should not disseminate, distribute, or copy this
> e-mail. Please notify the sender immediately by e-mail if you have
> received this e-mail by mistake and delete this e-mail from your system.
> E-mail transmissions cannot be guaranteed to be secure or error-free as
> information could be intercepted, corrupted, lost, destroyed,arrive late
> or incomplete, or contain viruses. The sender therefore does not accept
> liability for any errors or omissions in the contents of this message
> which arise as a result of e-mail transmission. If verification is
> required please request a hard-copy version.
> 
>  
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> 
> Web site design development
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>  
> 
> Computer software development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>  
> 
> Software design and development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>  
> 
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>  
> 
> Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&;
> w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>  
> 
>  
> 
>  
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
> ________________________________
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to