Link to home
Start Free TrialLog in
Avatar of fool5683
fool5683Flag for United States of America

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
 
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});

Open in new window

MapSimple-Testing2.fla
Avatar of dgofman
dgofman
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fool5683

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.removeAll();
Again dfogman you are awesome!
Danke!