Vaadin TreeGrid
Component that adds tree-like functionality to Grid for displaying hierarchical data
TreeGrid is a UI component add-on for Vaadin 7. It adds the ability to display and edit hierarchical data source in the Grid component (similar to TreeTable's extension to Table).
Features:
- Basic functionality for displaying hierarchical data in Grid
- CSS configurable hierarchy indicators
- Expand/collapse functionality on mouse click
- Programmatically settable hierarchy column
- Keyboard navigation (Alt/Option + Arrow keys)
- Support for custom renderer on hierarchy column
- Support for custom depth calculation logic
- Support for custom collapse logic
Notes:
- This add-on relies on changes in Vaadin Framework 7.7.6
- This add-on is compiled with Java 7
Sample code
final TreeGrid grid = new TreeGrid(); // Container implementing Hierarchical and Indexed interfaces DemoContainer container = new DemoContainer(); grid.setContainerDataSource(container); // Set the column that shows the hierarchy information grid.setHierarchyColumn(DemoContainer.PROPERTY_LAST_NAME); grid.setColumnReorderingAllowed(true);
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Version 0.7.9
- Introduce separate JSON key for hierarchy data in order to avoid conflcit with tooltip data
- Released
- 2023-07-13
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.7+
- Browser
- N/A
Vaadin TreeGrid - Vaadin Add-on Directory
Component that adds tree-like functionality to Grid for displaying hierarchical dataOnline Demo
Issue Tracker
Source Code
Discussion Forum
Vaadin TreeGrid version 0.7.0
Initial public release
Vaadin TreeGrid version 0.7.2
- Fixed click handling on hierarchy column
- Fixed client side exception thrown due to unknown extension connector
- Fixed focus when navigating with keyboard
Vaadin TreeGrid version 0.7.3
Bug fixes
- Fixed exception on client side column reordering
- Fixed frozen columns when `setFrozenColumnCount(1);`
Vaadin TreeGrid version 0.7.4
- Improved compatibility with framework version 7.7.7
- Improved changing of hierarchy column
Vaadin TreeGrid version 0.7.5
- Fixed compatibility issue with framework 7.7.9 release
- **This version of the add-on is compatible with Vaadin Framework 7.7.9 and up**
Vaadin TreeGrid version 0.7.6
- Added expand listener and collapse listener
- **Requires Vaadin Framework 7.7.9 or higher**
Vaadin TreeGrid version 0.7.7
- Fixed IllegalAccessException when hiding/unhiding columns (#26, #27)
- **Requires Vaadin Framework 7.7.9 or higher**
Vaadin TreeGrid version 0.7.8
### Version 0.7.8
- Fixing issue #34: Unable to expand tree after upgrade to Vaadin 7.7.16
- Fixing issue #29: Expanding an already expanded node programatically results in node duplication
- Requires Vaadin 7.7.9 or newer
Vaadin TreeGrid version 0.7.9
### Version 0.7.9
- Introduce separate JSON key for hierarchy data in order to avoid conflcit with tooltip data