What would the datagrid headings look like? I get an error when trying to bind the datastore to the following datagrid:
<table data-dojo-type="dojox.grid.DataGrid" data-dojo-id="AddressGrid" id="AddressGrid"
data-dojo-props="rowSelector:''" style="width: 325px; height: 350px;
margin: 0; overflow: scroll">
<thead>
<tr>
<th field="Match_addr">
Match_addr
</th>
<th field="Score">
Score
</th>
<th field="Ref_ID">
Ref_ID
</th>
</tr>
</thead>
</table>
You can create a grid structure layout in your init by the following:
...
var layout = {
cells: [
{ field: "Match_addr", name: "Match Address", width: 'auto' },
{ field: "Score", name: "Scores", width: '125px' },
{ field: "Ref_ID", name: "Reference ID", width: '125px' }
]
};
var grid = dijit.byId("AddressGriD");
grid.attr("structure", layout);
...