PDA

View Full Version : TreeGrid and XML



jneuschl
31 May 2012, 6:16 AM
Hi guys,

can I feed TreeGrid from an XML source the same way as I'd do with Grid

Can you please post a show example also with the format of required XML?

Thanks a lot

e.g:
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
(String) component.getParameterString(GridDefinition.URL));
HttpProxy proxy = new HttpProxy(builder);
XmlLoadResultReader<ListLoadResult<ModelData>> reader = new XmlLoadResultReader<ListLoadResult<ModelData>>(
type);
final BaseListLoader<ListLoadResult<ModelData>> loader = new BaseListLoader<ListLoadResult<ModelData>>(
proxy, reader);
loader.load();
loader.setRemoteSort(true);
store = new ListStore<ModelData>(loader);