background preloader

Flex3

Facebook Twitter

Flexlib - Google Code. The FlexLib project is a community effort to create open source user interface components for Adobe Flex 2, 3 and 4. Current components: AdvancedForm, Base64Image, EnhancedButtonSkin, CanvasButton, ConvertibleTreeList, Draggable Slider, Fire, Highlighter, HorizontalAxisDataSelector IconLoader, ImageMap, PromptingTextArea, PromptingTextInput, Scrollable Menu Controls, SuperTabNavigator, Alternative Scrolling Canvases, Horizontal Accordion, TreeGrid, FlowBox, Docking ToolBar, Flex Scheduling Framework See the Full Component List. Browse the documentation, download the source code, or learn How to Contribute to the project. Flex Monkey Patches » Blog Archive » Flex linebreaks in DataGrid itemRenderer and itemEditors. DataGrid with flexible row height. Posted by Harry Vikatos | July 10, 2008 . In one project I needed to have a data grid cell present some hierarchical data and I thought I could just use a tree control as the item data renderer for that grid column.

This what I got: As you can see if you open the trees, the data row is not adjusting and you simply cannot see the child nodes. A special tree control had to be made and used as the data renderer, to get me to the correct result, as shown below: The code for this customised tree control can be seen below: Let’s have a quick walk through on what we are doing here: The key thing is to override the measure() function that calculates the row height (measuredHeight) of the component. Notice that you also need to set the variableRowHeight property of the data grid to true.