I’m hoping I’m making a stupid mistake somewhere regarding rowIndex from within an item Renderer.

 

The docs state:

rowIndex : int

The index of the item in the data provider.

 

However in practice the rowIndex I’m actually getting is the rowIndex of the DataGrid itself, not the dataProvider. So for example if I were to click onto an item it’s rowIndex may be 7, but scrolling down a little the rowIndex changes. This is obviously not the rowIndex of the provider, but the datagrid.

 

I’m using the following code:

 

var evt:DataGridItemEvent = new DataGridItemEvent("editItem");

evt.rowIndex = listData["rowIndex"];

var owner:DataGrid = listData["owner"];

owner.dispatchEvent(evt);

 

Where DataGridItemEvent is a simple custom event.

 

Any clues?

 

Cheers, Steve

__._,_.___

--
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 Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to