-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have problem with load on demand in tree like link -> www.zkoss.org/zkdemo/tree/loadondemand And if I use it in ZK sandbox demo with my tree for test link -> www.zkoss.org/zksandbox/#g12 with this code(Insert it in zksandbox):
<zk> <zscript> import org.zkoss.zksandbox.tree.BinaryTreeModel; BinaryTreeModel btm = new BinaryTreeModel(new ArrayList(new org.zkoss.zksandbox.BigList(1000))); </zscript> <tree id="tree" model="${btm}" mold="paging"> <treecols> <treecol label="Scheduling" hflex="min"/> <treecol label="Code" hflex="1"/> </treecols> </tree> </zk>
It works correctly.
I created new project ZK as described in this guide www.zkoss.org/wiki/ZK%20Installation%20Guide/Quick%20Start/Create%20and%20Run%20Your%20First%20ZK%20Application%20with%20IntelliJ%20and%20ZKIdea , I tested it and it works incorrectly like this: link -> joxi.ru/Q2KeO37ial0Qrj
I don't know why in demo ZK it's working, but in my project it doesn't work.
My version ZK is 8.0.1.1
Hello Skylow,
Please use the following demo as a reference:
https://www.zkoss.org/zkdemo/tree/loadondemand
Best Regards,
Darksu
Hi, Darksu, I used it like on the guide, what I noted in post before.
I need that it should works with headers (treecols),that is with 2 treecols and more, what I noted in post before.
I don't know why in demo ZK it's working, but in my project it doesn't work.
Well, difference between project from Maven archetype and demo on ZK website, that Maven archetype provides us only ZK CE, which as I guess does not support automatic dynamic width of columns.
Is the only solution, buy ZK?
Asked: 2016-07-27 15:34:46 +0800
Seen: 39 times
Last updated: Sep 01 '16
disable load on demand on a tree
Large Tree with dynamic columns
Tree width lost after changing col width on maximized panel
MVVM tree example to show add/insert/delete/move/drag?
Error writing 'checked' on type org.zkoss.zul.Checkbox [closed]
Problem with changing MVVM tree model
zk framework: how to load zul pages from WEB-INF under directory zul