Printing Datagrid items

Posted on 2011-10-02
Last Modified: 2012-05-12
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;

Open in new window

Question by:fool5683
    LVL 29

    Expert Comment

    LVL 29

    Accepted Solution


    Author Closing Comment

    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:
    Again dfogman you are awesome!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
    The viewer will learn how to count occurrences of each item in an array.
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now