Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kumar on Jan 20, 2009 07:39
open dhtmlx forum
dhtmlXComboFromSelect openSelect issue..

Trying to open dhtmlXComboFromSelect expanded. Here is the code snippet:

Initially, when the page loads, below is the code:

    var z=dhtmlXComboFromSelect("abc",100);
    z.enableOptionAutoPositioning();
    z.enableOptionAutoWidth(true);
    z.enableOptionAutoHeight(true);
    z.autoOptionSize=true;
    z.show(false);

Conditionally, based on a app trigger, the combo box need to show all options expanded, using below code:

        z.show(true);
        z.openSelect();

Problem: This unhides and shows the combobox, but NOT in the expanded options mode.
Answer posted by Support on Jan 20, 2009 08:11
Yes, the show|hide commands show|hide the combo itself, and doesn't related to the filtering state in combo.
Please check next sample, it shows how combo can be forced to show all options. 
http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=2683&ssr=yes&s=combo%20show%20open