Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anuj on Sep 08, 2008 03:56
open dhtmlx forum
Add dynamic Combo box with Dynamic Data in Dhtml Gride.


My Grid fill from dynamic generated XML. I want to add combo box to Cell C on the base of Cell B value

Combo Box Option are different for different rows of the bases of Cell B value of that Row

Please tell the process to add combo box and also javascript name i have to add to display combo box

Anuj
Answer posted by Support on Sep 08, 2008 09:32
>>to add combo box 

please check 
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Selectbox_collections.html#grid_art_selectbox

The combo box aded by using "co" or "coro" as column types. 
Options can be set by js code or directly from XML.

>>I want to add combo box to Cell C on the base of Cell B value
Please check next sample
          http://dhtmlx.com/docs/products/dhtmlxGrid/samples/cell_types/pro_dynamic_combo.html?un=1220892732000
It shows one of possible ways, to configure combo boxes on the fly. 
In the sample values in least related to row ID, but similar code can be used to link values of one combo to value in different one.