actionscript 3 - Problems in looping an AdvancedDataGrid -


i need loop through advanceddatagrid's tree. can explain me things?

this code:

var adg : advanceddatagrid;  var dp : groupingcollection2 = adg.dataprovider; var cursor:iviewcursor=dp.createcursor(); 

now issue don't know how access objects here. advanceddatagrid has dataprovider groupingcollection2 has xml source, , grouped "project_name" field xml.

any advice?

something this?

var dp:object=mydg.dataprovider; var cursor:iviewcursor=dp.createcursor();  while( !cursor.afterlast ) { // access each column field like: cursor.current.myfieldname trace(cursor.current.myfieldname); // don't forget move next row: cursor.movenext(); } 

source

this might useful: http://help.adobe.com/en_us/flashplatform/reference/actionscript/3/mx/collections/iviewcursor.html

this example useful: http://blog.flexexamples.com/2008/04/15/creating-a-view-cursor-on-an-arraycollection-in-flex/


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -