Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rohit Mital on Apr 09, 2008 09:05
open dhtmlx forum
DhtmlxFrid and Combo

I am using dhtmxcombo within a grid and in all the integration examples it shows initialization using XML. Can I initialize the combo box in a grid using script. I want to set the combo box to be read-only and populate it with data using script.
Answer posted by Support on Apr 10, 2008 02:18
The combo excell was changed.

Does your combo version support  the getColumnCombo method ?

If it doen't, please, contact us to support@dhtmlx.com and we will send you the latest version which allows to initialize combo excell by the script.

In the other case (you have the latest version), you can do the following:

 grid.loadXML("grid.xml",function(){
      var combo = grid.getColumnCombo(COLUMN_INDEX);
      combo.addOption(....);
 });