• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

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
0
fool5683
Asked:
fool5683
  • 2
1 Solution
 
dgofmanCommented:
0
 
fool5683Author Commented:
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!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now