           opts.pageSize = pageSize;
                    pager.pagination('refresh', {
                        pageNumber: pageNum,
                        pageSize: pageSize
                    });
                    dg.treegrid('loadData', state.originalRows);
                }
            });
            if (!state.originalRows) {
                state.originalRows = data.rows;
            }
            var topRows = [];
            var childRows = [];
            $.map(state.originalRows, function (row