Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by uvaraj24 on Aug 21, 2008 02:00
open dhtmlx forum
How to add data to "co" field?

Dear Support Team,

I am using the column types in grid like below

mygrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,co,ed,ed");

if i click on "co" field it will display combo box without any data, I want to add default option values to that "co" column type.


please tell me how to do this.

Thanks In Advance
uvaraj24
Answer posted by Support on Aug 21, 2008 02:34
Please check 
    http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox

The options can be added as 

var combo = grid.getCombo(7);
      combo.put(value,label);
      combo.put(value,label);
      ...