<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>
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>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.