jQuery ComboBox

Set the autoOpen property of the jqxComboBox. Author: http://jqwidgets.com

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="ddl"></div>

JavaScript

let efData = {};
efData["EF_hprmc"] = "SOLAR";
efData["EF_41ixj"] = "COAL";
efData["EF_0"] = "<span class='msg-second'>EF_0 <sup><i class='fa fa-exclamation-triangle text-info'></i></sup></span>";



let msgef= [
{
            "EF": "SOLAR",
            "EFId": "EF_hprmc",
            "Desc": "EF_hprmc energy form",
            "ELId": "EL_l13mw",
            "OPId": "OP_1",
            "DM": true
        },
        {
            "EF": "COAL",
            "EFId": "EF_41ixj",
            "Desc": "EF_41ixj energy form",
            "ELId": "EL_hqr1n",
            "OPId": "OP_0",
            "DM": true
        },
        {
            "EF": "<span class='msg-second'>EF_0 <sup><i class='fa fa-exclamation-triangle text-info'></i></sup></span>",
            "EFId": "EF_0",
            "Desc": "<span class='msg-second'>Default energy form <sup class='text-info'><i class='fa fa-exclamation-triangle'></i>not editable</sup></span>",
            "ELId": "EL_0",
            "OPId": "OP_0",
            "DM": false
        }
    ];
        var srcEnergyForms = {
            localdata: msgef,
            datatype: "json",
            datafields:
                [
                    { name: 'EFId', type: 'string' },
                    { name: 'EF', type: 'string' },
                    { name: 'Desc', type: 'string' },
                    { name: 'ELId', type: 'string' },
                    { name: 'OPId', type: 'string' },
                    { name: 'DM', type: 'bool' },
                ],
        }
               var daEnergyForm = new jqx.dataAdapter(srcEnergyForms, {
            autoBind: true
        });
        console.log('daEnergyForm ',daEnergyForm.records)
        $("#ddl").jqxDropDownList({
                source: daEnergyForm, 
                displayMember: 'EF', 
                valueMember: 'EFId', 
                checkboxes: true, 
                filterable: true, 
                filterHeight:30, 
                theme:"energyblue",
               ...