RE: [flexcoders] Re: AUTO DELETE ITEMS IN DATAGRID

2006-09-05 Thread Tracy Spratt
@yahoogroups.com Subject: Re: [flexcoders] Re: AUTO DELETE ITEMS IN DATAGRID Yeah if it's saying undefined method, you're going to want to make sure you are calling the right function on the right object. From the code below it looks like your DataGrid does not have an id, so try giving your

Re: [flexcoders] Re: AUTO DELETE ITEMS IN DATAGRID

2006-09-04 Thread Nate Hardt
Yeah if it's saying undefined method, you're going to want to make sure you are calling the right function on the right object. From the code below it looks like your DataGrid does not have an id, so try giving your datagrid an id, then call removeItemAt on the dataProvider that goes with that

Re: [flexcoders] Re: AUTO DELETE ITEMS IN DATAGRID

2006-09-03 Thread Nate Hardt
Ahh, I see. I think what you need to do is listen for the dataChange event on the data grid you want to keep at 5 items. In the event handler, count the rows in the data provider. If it's more then 5, then do your removeItemAt(0); Here's more info on dataChange if you are unfamiliar with