-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
is there a fast way to add totals to tree? And i mean also subtotals when i click on a node..
Thank you
i will put a node in the final of every node with the sum of sub-nodes and in the final of tree the sum with subtotals...
if you want to do that in event click can be done like bellow:
treerow.addEventListener("onClick", new EventListener() { @Override public void onEvent(Event event) throws Exception { onClickTreerow(event); } }); private void onClickTreerow(Event event) throws Exception { Treerow treerow = (Treerow) event.getTarget(); Treeitem treeitem = (Treeitem) treerow.getParent(); //your logic here }
I hope it helped.
Asked: 2012-02-29 10:10:28 +0800
Seen: 107 times
Last updated: Feb 29 '12