) {
                row._parentId ? childRows.push(row) : topRows.push(row);
            });
            data.total = topRows.length;
            var start = (opts.pageNumber - 1) * parseInt(opts.pageSize);
            var end = start + parseInt(opts.pageSize);
            data.rows = $.extend(true, [], topRows.slice(start, end).concat(childRows));
            return data;
        }

        var appendMethod = $.fn.treegrid.methods.append;
        var loadDataMethod = $.fn.treegrid.methods.loadData;
       