  | |  | hScrollPolicy for dGrid | hScrollPolicy for dGrid
2004-02-20 - By Nigel Pegg
Back
Yo e.d.
Checkout : http://www.markme.com/nigel/archives/004005.cfm , rule d) (I
love this whole "see my blog " thing, I can justify nearly anything).
So, the column isn 't going to measure the text for you (performance blight
when scaling up to 1000s of records). You have to specify a width for the
column that can accomodate the text. One way to find this width is to
instantiate a dummy cellRenderer (or createLabel if you 're using the
default), and put every piece of text in your dataProvider 's column in it
one by one, and measure the maximum getPreferredWidth.
nig
-- ---- ---- ---- ---- ---- --
Date: Fri, 20 Feb 2004 13:33:03 -0500
To: flashcoders@(protected)
From: eric e. dolecki <ericd@(protected) >
Subject: hScrollPolicy for dGrid
Message-Id: <380E99F4-63D3-11D8-A244-000393D8905E@(protected) >
I am setting info, the 3rd column has long text, so it should produce a
horizontal scrollbar... however it isn 't
my_sp.hScrollPolicy = "auto ";
do i need to do anything specific to get this? i have headers turned
off....
+-- e.d. --+
-- ---- ---- ---- ---- ---- --
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104877
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |