  | |  | hScrollPolicy for dGrid | hScrollPolicy for dGrid
2004-02-20 - By eric e. dolecki
Back gah. Thank you for the reply nigel - i guess i could do that except i
wanted the last column to eat up the rest of the grid 's width - setting
the first couple rows and then not setting a width.... so i should loop
through each of the last column 's text lengths, storing that, and then
setting the column 's width based on that. sounds like a plan.
the tooltip thing is still pretty handy... and i can do that without
using a cellRenderer like i had to in MX.
you rock nigel.
+-- e.d. --+
On Feb 20, 2004, at 4:27 PM, Nigel Pegg wrote:
>
> 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)
>
>
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
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:104879
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |