Solved

datagrid how to get multi-line working

Posted on 2007-11-25
3
647 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 total points
ID: 20479159
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
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…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

630 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