store = new dojo.data.ItemFileReadStore({ data:data }); dojo.style(dojo.byId("grid"), "width", "280px"); dojo.style(dojo.byId("grid"), "height", "150px"); //obviously this was not working var grid = dijit.byId('grid'); grid.setStore(store); grid.resize(); autoWidth: true; autoHeight: true; map.centerAndZoom(center, zoom); }
<div class ="toggle" id="menu_subA">Enter building number, name and abbreviation<br> <input type="text" id="searchField" size="30" value="" /><button data-dojo-type="dijit.form.Button" onClick="doFind();" value="Search">Search</button> <table data-dojo-type="dojox.grid.DataGrid" data-dojo-id="grid" id="grid" data-dojo-props="rowsPerPage:'1', rowSelector:'10px'"> <thead> <tr> <th field="Number" width="50">Num</th> <th field="Abbrev" width="50">Abbr</th> <th field="CampusCode" width="50">Camp</th> </tr> </thead> </table> </div>
<div class ="toggle" id="menu_subA" style="height:55px;">Enter building number, name and abbreviation<br> <input type="text" id="searchField" size="30" value="" /><button data-dojo-type="dijit.form.Button" onClick="doFind();" value="Search">Search</button> <table data-dojo-type="dojox.grid.DataGrid" data-dojo-id="grid" id="grid" data-dojo-props="rowsPerPage:'1', rowSelector:'10px'"> <thead> <tr> <th field="Number" width="50">Num</th> <th field="Abbrev" width="50">Abbr</th> <th field="CampusCode" width="50">Camp</th> </tr> </thead> </table> </div>
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.