Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard White on Sep 30, 2007 21:18
open dhtmlx forum
coro in celL

Hi,

is it possible to add individual combo's to cells instead of just columns

thanks
Answer posted on Oct 01, 2007 10:38
Latest version ( dhtmlxgrid 1.4 ) contains some support for such initialization
It can be done from XML

<row id='2'>
    <cell>1</cell>
    <cell xmlcontent="true">1
       <option value="1">One</option>
       <option value="2">Two</option>
       <option value="3">Three</option>
    </cell>
</row>
      
or through javscript in next way

var z = new dhtmlXGridComboObject();
grid.cells(i,j).cell._combo=z;
z.put(1,"One");
z.put(2,"Two");
z.put(3,"Three");