Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 14, 2007 14:36
open dhtmlx forum
I may have huge combo box data, What I am doing is, when user clicks on that cell, it fires an AJAX call ...

I may have huge combo box data, What I am doing is, when user clicks on that cell, it fires an AJAX call to populate dropdown, but it looks like when I do this

var combobox = mygrid.getCombo(cellInd);

for ( var i = 1; i < arrTM.length(data returned from AJAX) ; i++)

{                      

combobox.put(arrTM[i],arrTM[i])

}

            It populates the combo for whole column that makes my effort (populate on demand) worthless. Am I true?

Answer posted on Mar 14, 2007 14:36

Yes, this approach populates the combo for the whole column. By default the list of values is common for all combo/select boxes in the same column. You can create a custom excell, or try to use save() and restore() methods which save/restore state of combobox. Please check:

            samples/pro_dynamic_combo.html
Answer posted by sematik (Support) on Dec 07, 2014 13:13

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking data grid javascript and gandt chart.