-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How can I get a TREE (using SimpleTreeModel) upto 2 levels .
it should be of the following structure ----
-Root
-h1
-h1.1
-h1.2
-h2
-h3
Please suggests me ????
Check http://en.wikibooks.org/wiki/ZK/How-Tos/Concepts-and-Tricks#How_to_open_treeitem_at_start
Thanx a Lot Sir !!!
My other poblem is when I add nodes dynamically at diff levels like 2,3,4...., I am able to save the 'nodeName' and 'idofParentNode'(it is the id of selected node's Parent) ...
When i fire a query say "select nodeName,idofParentNode from Client", i get the data.
But what is the way to store these names so that I build a tree with same structure(as that while adding).
I am still confused if they are 7 levels ...then will I need 7 arrayLists?????
Pls help me...
If you are using a model, update the model (add, update or remove nodes) and then synchronize the model with the component...
Check http://docs.zkoss.org/wiki/ZK_Tree_Model
Asked: 2009-11-09 04:57:38 +0800
Seen: 895 times
Last updated: Nov 11 '09