Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prabhu on May 30, 2008 00:03
open dhtmlx forum
Could you please tell me,how to set/get value from the combo.

Hello,

   I'm using combo in the grid cells.

    <?xml version='1.0' encoding='UTF-8'?&gt; <rows&gt; <head&gt;  <column width='180' type='combo' align='center'&gt;<![CDATA[Action<span style='color:red'&gt;*</span&gt;]]&gt; </column&gt;&gt;</head&gt;


   Appreciate if you can provide the sample code.Thanks!

Answer posted by Support on May 30, 2008 02:39
You can get combo object and use its API to add|delete options

    grid.loadXML(url,function(){
       var combo=this.getColumnCombo(0);
       combo.addOption({value:1,label:"one"})
       combo.addOption({value:2,label:"two"})
       combo.deleteOption(1)
    });