<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Creating multi-line data grid rows with variable row heights</title>
	<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 10:31:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Alex C</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-16346</link>
		<author>Alex C</author>
		<pubDate>Tue, 21 Oct 2008 20:36:39 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-16346</guid>
		<description>Can this method also be used when you load an image in an itemRenderer of a column and thus need to force the selected row to be resized to the image's new height? Thanks.</description>
		<content:encoded><![CDATA[<p>Can this method also be used when you load an image in an itemRenderer of a column and thus need to force the selected row to be resized to the image&#8217;s new height? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GT</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-15793</link>
		<author>GT</author>
		<pubDate>Mon, 22 Sep 2008 16:26:30 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-15793</guid>
		<description>Hi, all.

Tony - Ihave the same problem. Also, I don't understand how it does rowCount - if I try to useuse &lt;b&gt;{dp.length}&lt;/b&gt; where dp is the dataProvider, half the time it's OK, half the time I get those blasted scrollbars. Sometimes I use dp.length+1 or +2 (thinking perhaps the headers are being included) and sometimes that works, but it's not reliable. 

rowCount is the only mechanism I've been able to think of to display the entire datagrid without scrollbars (trying to do it via &lt;b&gt;height&lt;/b&gt; is a crapshoot). Ideally I would like the entire Application to render itself outwards so that the height of every component is the sum of the heights of its children.

Sorry... off on a tangent. 

Cheers


GT
France</description>
		<content:encoded><![CDATA[<p>Hi, all.</p>
<p>Tony - Ihave the same problem. Also, I don&#8217;t understand how it does rowCount - if I try to useuse <b>{dp.length}</b> where dp is the dataProvider, half the time it&#8217;s OK, half the time I get those blasted scrollbars. Sometimes I use dp.length+1 or +2 (thinking perhaps the headers are being included) and sometimes that works, but it&#8217;s not reliable. </p>
<p>rowCount is the only mechanism I&#8217;ve been able to think of to display the entire datagrid without scrollbars (trying to do it via <b>height</b> is a crapshoot). Ideally I would like the entire Application to render itself outwards so that the height of every component is the sum of the heights of its children.</p>
<p>Sorry&#8230; off on a tangent. </p>
<p>Cheers</p>
<p>GT<br />
France</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-15094</link>
		<author>Tony</author>
		<pubDate>Mon, 01 Sep 2008 15:38:05 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-15094</guid>
		<description>Nice post.  I have been messing around with datagrids for a while now and one thing I cannot understand is how flex insists that your rows are padded.  I want rows to be only high enough so that the text is not cut off so that one row's text appears to be on top of the following row's text.  Does anyone know how to do this?  Changing the rowheight property does not work, and turning horizontal grid lines off does not either.</description>
		<content:encoded><![CDATA[<p>Nice post.  I have been messing around with datagrids for a while now and one thing I cannot understand is how flex insists that your rows are padded.  I want rows to be only high enough so that the text is not cut off so that one row&#8217;s text appears to be on top of the following row&#8217;s text.  Does anyone know how to do this?  Changing the rowheight property does not work, and turning horizontal grid lines off does not either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brixel</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-14342</link>
		<author>Brixel</author>
		<pubDate>Fri, 25 Jul 2008 13:25:14 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-14342</guid>
		<description>One additional note.

You can sort of work around this by adding a blank row to the grid, so it thinks there are at least 2 rows and the scrollbar will render, however, even when you do get a scroll bar, if the text block is large enough, it still doesn't scroll properly to let you see everything, it just jumps to the blank row instead and you miss the rest of the data in the larger row.</description>
		<content:encoded><![CDATA[<p>One additional note.</p>
<p>You can sort of work around this by adding a blank row to the grid, so it thinks there are at least 2 rows and the scrollbar will render, however, even when you do get a scroll bar, if the text block is large enough, it still doesn&#8217;t scroll properly to let you see everything, it just jumps to the blank row instead and you miss the rest of the data in the larger row.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brixel</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-14341</link>
		<author>Brixel</author>
		<pubDate>Fri, 25 Jul 2008 13:10:44 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-14341</guid>
		<description>Hey guys,

I ran into this post searching for an answer to a problem using this technique. If you have this exact setup, using variableRowHeight="true" and a column that "wraps", and put only one row in the data grid, which exceeds the height of the datagrid, the scroll bar will not appear, and trying to force the scroll bar to appear basing it off the measureHeightOfItems and the height of grid can produce a scroll bar, but it's greyed out.

I've seen there are a few bugs related to variableRowHeight, but hadn't seen a solution to my issue.

To recreate just setup your grid say with a height of 200 pixels and set variableRowHeight="true" and a column with wordWrap="true". Then push one row of data to it that has enough data to force the row height beyond 200 pixels or use carriage returns in the data, etc and the grid will not render the scrollbar.

Peter can you confirm this to be a bug, is there a work around?</description>
		<content:encoded><![CDATA[<p>Hey guys,</p>
<p>I ran into this post searching for an answer to a problem using this technique. If you have this exact setup, using variableRowHeight=&#8221;true&#8221; and a column that &#8220;wraps&#8221;, and put only one row in the data grid, which exceeds the height of the datagrid, the scroll bar will not appear, and trying to force the scroll bar to appear basing it off the measureHeightOfItems and the height of grid can produce a scroll bar, but it&#8217;s greyed out.</p>
<p>I&#8217;ve seen there are a few bugs related to variableRowHeight, but hadn&#8217;t seen a solution to my issue.</p>
<p>To recreate just setup your grid say with a height of 200 pixels and set variableRowHeight=&#8221;true&#8221; and a column with wordWrap=&#8221;true&#8221;. Then push one row of data to it that has enough data to force the row height beyond 200 pixels or use carriage returns in the data, etc and the grid will not render the scrollbar.</p>
<p>Peter can you confirm this to be a bug, is there a work around?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-6835</link>
		<author>peterd</author>
		<pubDate>Sun, 10 Feb 2008 08:11:08 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-6835</guid>
		<description>pmolaro/Harry Saputra,

You could probably make a custom item renderer which renders HTML text and then use the &lt;br /&gt; tag.

I've never tried it, but it should probably work.

Peter</description>
		<content:encoded><![CDATA[<p>pmolaro/Harry Saputra,</p>
<p>You could probably make a custom item renderer which renders HTML text and then use the <br /> tag.</p>
<p>I&#8217;ve never tried it, but it should probably work.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Saputra</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-6767</link>
		<author>Harry Saputra</author>
		<pubDate>Fri, 08 Feb 2008 02:55:01 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-6767</guid>
		<description>Quote :
Can I take a similar action by plugging in some sort of break tag (like an HTML )? I want to control where my text wraps to the next line.

Yup, i need this too</description>
		<content:encoded><![CDATA[<p>Quote :<br />
Can I take a similar action by plugging in some sort of break tag (like an HTML )? I want to control where my text wraps to the next line.</p>
<p>Yup, i need this too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pmolaro</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-5214</link>
		<author>pmolaro</author>
		<pubDate>Tue, 18 Dec 2007 19:31:37 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-5214</guid>
		<description>Can I take a similar action by plugging in some sort of break tag (like an HTML )?  I want to control where my text wraps to the next line.
___________________________________
p m o l a r o</description>
		<content:encoded><![CDATA[<p>Can I take a similar action by plugging in some sort of break tag (like an HTML )?  I want to control where my text wraps to the next line.<br />
___________________________________<br />
p m o l a r o</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-3103</link>
		<author>peterd</author>
		<pubDate>Mon, 01 Oct 2007 05:15:44 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-3103</guid>
		<description>Fred,

Not sure if you're still reading, but I posted a/the solution as a new entry. You can check it out at: &lt;a href="http://blog.flexexamples.com/2007/09/30/using-a-flex-textarea-control-as-a-drop-in-item-editor/" rel="nofollow"&gt;"Using a Flex TextArea control as a drop-in item editor"&lt;/a&gt;.

Hope that helps,
Peter</description>
		<content:encoded><![CDATA[<p>Fred,</p>
<p>Not sure if you&#8217;re still reading, but I posted a/the solution as a new entry. You can check it out at: <a href="http://blog.flexexamples.com/2007/09/30/using-a-flex-textarea-control-as-a-drop-in-item-editor/" rel="nofollow">&#8220;Using a Flex TextArea control as a drop-in item editor&#8221;</a>.</p>
<p>Hope that helps,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred</title>
		<link>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-3053</link>
		<author>Fred</author>
		<pubDate>Sat, 29 Sep 2007 11:41:00 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/#comment-3053</guid>
		<description>Hi,

Unfortunaly it seem that if you are in edit mode (ie datagrid.editable = true)
and you clic into cell then it is put all in a single line.

Do you know how to edit like textarea?

Thanks

Fred</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Unfortunaly it seem that if you are in edit mode (ie datagrid.editable = true)<br />
and you clic into cell then it is put all in a single line.</p>
<p>Do you know how to edit like textarea?</p>
<p>Thanks</p>
<p>Fred</p>
]]></content:encoded>
	</item>
</channel>
</rss>
