The check event is fired after a TreeView item's checkbox has been clicked.

The following additional properties are set to the event object:
- element - the element of the node being selected;
- item - the data source item object of the node being selected;
- checked - whether the checkbox is checked or unchecked.

<ul id="treeview">
    <li>My Project
            <li id="someid">js</li>

<script type="text/javascript">
    jQuery(function ($) {
            events: {
                check: function(e) {
                    console.log((e.checked ? "" : "un") + "checked a node");