append', {
            parent: node.id,
            data: [{
                id: idIndex,
                name: 'New Task' + idIndex,
                persons: parseInt(Math.random() * 10),
                begin: $.fn.datebox.defaults.formatter(d1),
                end: $.fn.datebox.defaults.formatter(d2),
                progress: parseInt(Math.random() * 100)
            }]
        })
    }

    function removeIt() {
        var node = $('#tg').treegrid('getSelected');
        if (node) {
            $('#t