我正在使用 Ext GWT。我有一个带有分页和 JSON 的网格。
我不明白,我在哪里可以在分页配置中设置所有记录数。
我的分页网格是错误的,因为它不知道数据库表中有多少条记录。
谢谢
String path =  GWT.getHostPageBaseURL() + (Examples.isExplorer() ? "" : "../../" ) + "backend/index.php?action=getLines";  
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, path);  
HttpProxy<String> proxy = new HttpProxy<String>(builder);  
JsonPagingLoadResultReader<PagingLoadResult<ModelData>> reader = new JsonPagingLoadResultReader<PagingLoadResult<ModelData>>(type);  
final PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy,  
    reader);
[...]
final PagingToolBar toolBar = new PagingToolBar(10);  
toolBar.bind(loader);  
loader.load(0, 10);