Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alex Skorohod on Jul 28, 2009 07:56
open dhtmlx forum
DHTMLGrid XML loading of Combo Excell

What is the limitation of the XML for loading large comboboxes? I have a grid where I have an item combo with over thousand items. When I try loading the combo through XML (in the <head> section) anything above approximately 430 option throws and error of invalid XML (although the XML is correct).
Answer posted by Alex (support) on Jul 28, 2009 08:13

Hello, 

you can use dynamic loading in this case. Please, see the sample in the combo package dhtmlxCombo/samples/filtering/combo_filter.html

If there is the "combo" column in the grid.

grid.init();
var combo = grid.getColumnCombo(columnIndex);
combo.enableFilteringMode(true,path_to_script,true);

if only one cell:

grid.loadXML("some.xml",function(){

var combo = grid.cells(rowId,cellIndex).getCellCombo();
combo.enableFilteringMode(true,path_to_script,true);

})