hi thanks for trying to help my dataprovider is _xlcdatagrid2 this compiles ok i have no problem with it
but when i put in my datagrid dataChange="datagrid2.selectedIndex.AutoB()" i get this error
undefined method

here is the code to pass data to datagrid2

import mx.collections.XMLListCollection;

[Bindable]
private var _xlcdatagrid:XMLListCollection;
[Bindable]
private var _xlcdatagrid2:XMLListCollection = new XMLListCollection;

private function onResult(oEvent:ResultEvent):void
{
_xlcdatagrid = new XMLListCollection(oEvent.result.name)
datagrid.dataProvider = _xlcdatagrid;
}
private function selectItem():void
{
_xlcdatagrid2.addItem(datagrid.selectedItem);
}
********************************************************
code
public function AutoB():void{
if (this._xlcdatagrid2.length >= 2){
_xlcdatagrid2.removeItemAt(0);
}
}
*********************************************************

<mx:Datagrid>
..
dataChange="datagrid2.selectedIndex.AutoB()"
</mx:Datagrid>
......
__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to