/*package*/ DataLoader getDataLoader() { if (_dataLoader == null) { _rod = evalRod(); final String loadercls = Library.getProperty("org.zkoss.zul.grid.DataLoader.class"); try { _dataLoader = _rod && loadercls != null ? (DataLoader) Classes.forNameByThread(loadercls).newInstance() : new GridDataLoader(); } catch (Exception e) { throw UiException.Aide.wrap(e); } _dataLoader.init(this, 0, initRodSize()); } return _dataLoader; }
final boolean defer = exec == null ? false : exec.getAttribute("zkoss.Grid.deferInitModel_" + getUuid()) != null; final boolean rod = evalRod(); if (!defer || !rod) getDataLoader().syncModel(-1, -1);
final boolean rod = evalRod(); if (_rod != rod || getRows() == null || getRows().getChildren().isEmpty()) { if (_model != null) { //so has to recreate rows and items
final boolean defer = exec == null ? false : exec.getAttribute("zkoss.Grid.deferInitModel_" + getUuid()) != null; final boolean rod = evalRod();