check all items in tree
tree.checkAll();
If id provided - only item in the target branch will be checked, else - all items in the tree