Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad PG on Nov 21, 2008 06:06
open dhtmlx forum
default selected value in DHTMLX combo with Filtering enabled

Im using DHTMLX combo version 1.5 with Filtering enabled
"cmbModule.enableFilteringMode(true);".

How can I make a particular value from the List of options as SELECTED on load of the combo.

I have tried "cmbModule.selectedIndex = 6", but not working. Is there any way to achieve this?
Answer posted by Support on Nov 21, 2008 06:37
combo.loadXML(url,function(){
    combo.selectOption(6,false,true);
    //or if you need to select it by value - combo.setComboValue(value);
});