Well, I'm not using any custom cell renderers on this one. Also, unfortunately with the data I am displaying, wrapping the text is no good. There are around 20+ columns of pretty small data, like dollar amounts and such. So I need to think of a solution for autosizing. Thanks though! Chris Scott
On May 1, 2006, at 2:10 PM, Tim Hoff wrote: If you are using cellRenderers (like a text control), I beleive that you can not set the width of the text field and the column should adjust. As an alternative, you can set the variableRowHeight property of the grid to true. This will produce multi-line rows if the cell contents are larger than the set width of the column. Tim Hoff --- In flexcoders@yahoogroups.com, Chris Scott <[EMAIL PROTECTED]> wrote: > > Hi I'm wondering if anyone has done an extended dataGrid component or > can shed some light on the direction to take on building a dataGrid > that autosizes it's columns to the size of the data contained, > similar to how a normal grid component filled with text fields would > work, but of course I need it to me sortable and scrollable, so the > dataGrid is really what I want. I'm considering trying to handle an > event when data is loaded to each cell to increase a width var if the > new value us larger, then set the column widths to that var, but I'm > getting a little bogged down with what events to attach eventHandlers > to. Any advice is appreciated, thanks! > > Chris > > BTW, Flex 2 Beta 2... > > Chris Scott > [EMAIL PROTECTED] > http://cdscott.blogspot.com/ > http://www.coldspringframework.org/ >
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS YAHOO! GROUPS LINKS |