-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
Is there anyway for a tree to support an empty message in case it has no results? Both grid and listbox support an empty message. And we need to use a tree with trecols to show a list that has several levels of categories, but if the model of the tree is empty because there are no results (I.e. By doing a search of the elements of the tree) we wanted to have an empty message like there is on a grid or a listbox.
I created a fiddle to show an empty tree: zkfiddle.org/sample/3inton9/1-Empty-Tree
The zul of that fiddle is this:
<zk>
<window id="uploadVideo"
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('pkg$.TestVM')">
<tree model="@load(vm.model)">
<treecols>
<treecol label="Item"/>
</treecols>
</tree>
</window>
</zk>
Asked: 2015-07-01 12:49:19 +0800
Seen: 41 times
Last updated: Jul 03 '15