Tree scrolling

All

Is there a way to get the tree to support a scroll bar. I have about 500 entries I would like to load into a tree, but it just stops after a certain point.

Trees can’t have scrollbar, but Panels can, so put the Tree in a Panel and give the Panel a defined height (either fixed or relative). The height of the Tree must be undefined.

Then it should look like in the
Sampler
, for example.

wicked thank you.

Ben,

Can you publish code for scrolling tree? I’m trying to get the same thing but having difficulty with tree caption appearing to left of tree in panel.

Thanks,

Np here it is



this.panel = new Panel();
		this.panel.setSizeFull();
		this.panel.setScrollable(true);
		this.panel.setStyleName("root");
		
		this.tree = new Tree();
		this.tree.setSizeFull();
		this.tree.setMultiSelect(true);
		this.tree.setImmediate(true);
		this.tree.setDragMode(TreeDragMode.NODE);
		this.tree.setContainerDataSource(dataSource);
		this.tree.setItemIconPropertyId(TreeDataSource.PROPERTY_ICON);