0

Treeview and Totals..

asked 2012-02-29 10:10:28 +0800

afxgroup gravatar image afxgroup
126 2

Hello,
is there a fast way to add totals to tree? And i mean also subtotals when i click on a node..

Thank you

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-02-29 11:55:45 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

updated 2012-02-29 11:58:04 +0800

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.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2012-02-29 10:10:28 +0800

Seen: 107 times

Last updated: Feb 29 '12

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