Directory

← Back

Vaadin TreeGrid

Component that adds tree-like functionality to Grid for displaying hierarchical data

Author

Contributors

Rating

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);

Compatibility

(Loading compatibility data...)

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.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
Released
2019-06-25
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.7+
Browser
N/A
Online