应该是分页的代码有些问题,你可以在浏览器开发人员模式下看下请求的数据,再看看代码。
你看下这个例子
http://www.jeasyui.com/demo/main/index.php?plugin=TreeGrid&theme=default&dir=ltr&pitem=
加载的时候客户端的请求参数为page:1,rows:2,id:0
服务端返回的数据为{"total":"3","rows":[{"0":"1","id":"1","1":"0","parentId":"0","2":"Computers","name":"Computers","3":null,"quantity":null,"4":null,"price":null,"state":"closed"},{"0":"2","id":"2","1":"0","parentId":"0","2":"Electronics","name":"Electronics","3":null,"quantity":null,"4":null,"price":null,"state":"closed"}]}
也就是说,展开子节点的数据不是从服务端请求的,当然你可以这样做
点击下一页的时候请求变为page:2,rows:2,id:0
也就是说默认的请求是根据最顶层节点来实现的,你要想实现展开子节点前分页返回不一样,通过默认的请求参数是实现不了的,你要自己添加参数来实现