title: Combobox in dhtmlxgrid on rails
body: <p>I have a dhtmlxgrid on my rails app. The grid is working fine but now I need to add a combobox to it and, even after reading all the help on their support foruns and all the documentation, I can't seem to get it working...</p>
  
  <p>Right now I set the column as a combobox, and it's being populated with the current value set on the database. But that column has two possible values. what I need is for the cell to be populated with: first the selected value on the database, but also list the second option if they want to change.</p>
  
  <p>Here's my current code</p>
  
  <p>view.html.erb</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
              var grid = new dhtmlXGridObject("grid_here");
              grid.setImagePath("../assets/dhtmlx/imgs/");
              grid.setHeader("Status");
          grid.attachHeader("#text_filter"); 
          grid.setColTypes("coro");
          grid.setColSorting("str");  
              grid.setInitWidths("60");
          grid.setSkin("dhx_skyblue");
              grid.init();
              grid.load("/data");
              grid.attachEvent("onCheck",doOnCheckBoxSelected);
              dp = new dataProcessor("/dbaction.xml");
              dp.init(grid);
  
  &lt;/script&gt;
  </code></pre>
  
  <p>data.xml.builder</p>
  
  <pre><code>xml.instruct! :xml, :version=&gt;"1.0" 
  
  xml.tag!("rows") do
      @products.each do |product|
          xml.tag!("row",{ "id" =&gt; product.id }) do
              xml.tag!("cell", product.status)
          end
      end
  end
  </code></pre>
  
  <p>Any idea on how to do this?</p>