0

Load on demand in tree

asked 2016-07-27 15:34:46 +0800

Skylow gravatar image Skylow
1 1

updated 2016-07-28 09:07:42 +0800

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

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2016-07-31 09:10:54 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Skylow,

Please use the following demo as a reference:

https://www.zkoss.org/zkdemo/tree/loadondemand

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2016-08-01 07:10:43 +0800

Skylow gravatar image Skylow
1 1

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.

link publish delete flag offensive edit
0

answered 2016-09-01 13:40:59 +0800

Dgray gravatar image Dgray
3 1

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?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-07-27 15:34:46 +0800

Seen: 39 times

Last updated: Sep 01 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More