By the way also demonstrates how to use the 'checkNode / checkAllNodes' method triggers 'beforeCheck / onCheck' callback, Try:
setting.check.autoCheckTrigger: false
Whether trigger the callback when execution checkNode() method.
Node --[ check ]
[ uncheck ]
[ toggle ]
Node (relationships) --[ check ]
[ uncheck ]
[ toggle ]
All Nodes --[ check ]
[ uncheck ]
How to use 'zTreeObj.checkNode / checkAllNodes' method, please see the API documentation.
beforeCheck / onCheck log: