TimeTracker Updated - Dealing with long strings in Flex DataGrids

This post is more than 2 years old.

I've updated TimeTracker again. This version includes the code fixes by Sid Wing (thanks!) which was part cleanup and a fix to the mx:Legend. I agree with Sid's comment that the docs could certainly be clearer.

I also removed the 'Enter key submits hours' thing so folks could enter multiline task descriptions. This is where I ran into an issue with the Flex DataGrid. It refused to correctly render the text in a readable format. Thanks to Scott Stroz for pointing out the variableRowHeight attribute for Flex DataGrids.

<mx:DataGrid id="todayshours" dataProvider="{todaysHoursData}" width="100%" height="100%" sortableColumns="true" variableRowHeight="true">

Oh my sweet little adorable Flex DataGrid, is there anything you cannot do?

I also added word wrap to the description columns as well as sorting. (Although I bet date sorting isn't quite right.)

Next up is the CSV export. After that is done I plan on releasing the code to RIAForge since there seems to be some interest.

Download attached file.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by todd sharp posted on 3/26/2008 at 8:59 PM

mx:Legend? what a sweet name for a tag...

i only wish we had a <cflegend> - of course it would only accept one attribute...

<cflegend name="ray" />

ok sorry...i'm done bein goofy...

Comment 2 by charlie griefer posted on 3/26/2008 at 9:18 PM

why the name attribute at all? wouldn't it just default to ray?

Comment 3 by todd sharp posted on 3/26/2008 at 9:35 PM

it does, but for ego purposes he likes to go ahead and code it...

Comment 4 by Arlow posted on 2/24/2011 at 1:16 AM

Any chance of us getting the source to TimeTracker? :)

Comment 5 by Raymond Camden posted on 2/24/2011 at 1:17 AM

It's up on RIAForge. I think timetracker.riaforge.org.