Solved

datagrid how to get multi-line working

Posted on 2007-11-25
3
634 Views
Last Modified: 2012-06-22
How do I get the description column to be multiline/wrap instead of cutting off the text. Here is code sofar:

links.dg.vScrollPolicy = "auto";

var linktext_dgc:DataGridColumn = new DataGridColumn("linktext");
linktext_dgc.width = 200; // width in pixels.
linktext_dgc.headerText = "Link";
links.dg.addColumn(linktext_dgc);

var description_dgc:DataGridColumn = new DataGridColumn("description");
description_dgc.width = 500; // width in pixels.
description_dgc.headerText = "Description";
links.dg.addColumn(description_dgc);

var dgLsr:Object = new Object();
dgLsr.change = function(evnt:Object) {
      if(links.dg.selectedItem['url'] != undefined) {
            getURL(links.dg.selectedItem['url'], "_blank", "POST");
      }
}
links.dg.addEventListener("change", dgLsr);

links.dg.dataProvider = _root.linkArray;
0
Comment
Question by:jstretch
  • 2
3 Comments
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 20475716
Have you tried changing the rowHeight parameter of the component?
0
 
LVL 6

Author Comment

by:jstretch
ID: 20477531
I had to attach a CellRenderer to that column. I didn't know about that class.
0
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 500 total points
ID: 20479159
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

757 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

18 Experts available now in Live!

Get 1:1 Help Now