Ryan Campbell Flex/Flash Developer Blog

22Jan/093

OpenFlux DataGrid Component (with view source)

I previously wouldn't have even thought of developing my own DataGrid component from scratch but with OpenFlux's help it's super easy (Or at least easy enough to want to attempt it). Over the last couple days I've spent my spare time developing an extremely flexible DataGrid component and if you view source, compared to the standard Flex DataGrid, you'll see there isn't a lot of code behind it.

The component is actually a grouping of multiple sub components including DataGridColumn, DataGridHeader, DataGridRow, DataGridCell which all extend either List or ListItem giving instant selection and drag/drop functionality. You can easily hook up your own custom controllers and views to add any functionality you desire.

Be sure to play around with the example below and view source to see how it all works. My only note is I'm having some SVN issues so this isn't yet committed to the OpenFlux project.

Comments (3) Trackbacks (0)
  1. very nice, just browsing, and noticed 2 quick things that you’ve probably already noted. But if not: When editing, if you click and drag to highlight, it thinks you’re dragging the row. Would be cool if shift+click would select the range.

    Anyway, this is nice.

  2. Thanks for the heads up. I’m sure there are still many more bugs to be found. Shift+click is something I’ve thought (for regular OpenFlux lists even) just haven’t had a chance to get to it. One day soon :)

  3. does it support percentages for column widths :)


Leave a comment


No trackbacks yet.

Ryan Campbell


follow bobjim at http://twitter.com

Recent Posts

Categories

Archives