I am looking into tree binding examples. All xml data is shown as an element based. Can I bind a tree widget to an attribute based xml?
Thanks
Thanks
<Route name="MainRoute" ID="123"> <InnerRoute symbol="stopSign" symbolID="abc"/> <InnerRoute symbol="yieldSign" symbolID="def"/> <Swale width="5" swaleID="zzz"/> </Route>
isc.DataSource.create({ ID:"bigroute", dataURL:"/routes/routeShow.do?type=all", recordXPath:"//Route", autoFetchData:false, fields: [ {type:"text", required:true, name:"routeName", valueXPath:"@name" }, {type:"text", required:true, name:"symbolName", valueXPath:"/InnerRoute/@symbol" }, {type:"text", required:true, name:"swaleWidth", valueXPath:"/InnerRoute/Swale/@width" } ] });
isc.TreeGrid.create({ ID:"Routes", dataSource:"bigroute", loadDataOnDemand:true, autoFetchData:true, autoDraw:true, height:"100%" })
Comment