title: Dojo-DataGrid :: How to dynamically fetch values as options for a select box in Dojo DataGrid
body: <p>I have a Dojo-DataGrid which is programatically populated as below :</p>
  
  <pre><code>var jsonStore = new dojo.data.ItemFileWriteStore({ url: "json/gaskets.json" });
  var layout= [
                  { field: "description", width: "auto", name: "Tier/Description", editable:true },
                  { field: "billingMethod", width: "auto", name: "Billing Method", editable: true,
                      type: dojox.grid.cells.Select, options: [ '0', '1' ]  },
                  { field: "offeringComponents", width: "auto", name: "Offering Component", editable: true,
                      type: dojox.grid.cells.Select, options: [ '0', '1' ] },
                  { field: "serviceActivity", width: "auto", name: "Service Activity", editable: true,
                      type: dojox.grid.cells.Select, options: [ '0', '1' ] },
                  { field: "hours", width: "auto", name: "Hours" },
                  { field: "rate", width: "auto", name: "Rate &lt;br/&gt; (EUR)" },
                  { field: "cost", width: "auto", name: "Cost &lt;br/&gt; (EUR)" },
                  { field: "price", width: "auto", name: "Price &lt;br/&gt; (EUR)" },
                  { field: "gvn", width: "auto", name: "Gvn" }
              ];
  
              grid = new dojox.grid.DataGrid({
                  query: { description: '*' },
                  store: jsonStore,
                  structure: layout,
                  rowsPerPage: 20
              }, 'gridNode');
  </code></pre>
  
  <p>The options for the field billingMethod (Currently defined as dojox.grid.cells.Select) are hard coded right now, but I would like to get those values dynamically from the backend as JSON. But dojox.grid.cells.Select currently(I am using Dojo 1.5) does not have a option to define a "store".</p>
  
  <p>I am trying to use dijit.form.FilteringSelect, but this needs a id(of a Div) for its constructor and I cannot specify one as this select box has to go with in the grid, rather than a separate DIV.</p>
  
  <p>Thanks
  Sandeep</p>