fool5683
asked on
Printing Datagrid items
Is there anyway to format and print the items (route directions) so that they will appear on 1 page contained in the following datagrid?
I am also having a problem with having the route directions in the Datagrid update when the user changes either of the locations. Please advise
I am also having a problem with having the route directions in the Datagrid update when the user changes either of the locations. Please advise
var route:Route = returnedDirection.getRoute(0);
var tf:TextField = new TextField();
for(var i:uint = 0; i < route.numSteps; i++){
var step:Step = route.getStep(i);
tf.htmlText = step.descriptionHtml + " - " + step.distanceHtml + ", " + step.durationHtml;
drivingDirection_dg.addItem({Direction:tf.text});
MapSimple-Testing2.fla
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I actually was looking at the DataProvider as the possible solution, but could not get the actual syntax correct. But I did solve the one issue with having the datagrid update whenever the user selected different locations by adding this line:
drivingDirection_dg.remove All();
Again dfogman you are awesome!
Danke!
drivingDirection_dg.remove
Again dfogman you are awesome!
Danke!
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/data/DataProvider.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6