Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

datagrid how to get multi-line working

Posted on 2007-11-25
3
Medium Priority
?
649 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 43

Expert Comment

by:Rob
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 43

Accepted Solution

by:
Rob earned 2000 total points
ID: 20479159
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

926 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