Solved

datagrid how to get multi-line working

Posted on 2007-11-25
3
638 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

896 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

19 Experts available now in Live!

Get 1:1 Help Now