dhtmlXCombo is not defined

I am simply trying to add a combo filter in the header. I was able to successfully to do it in other grids I have created, but I keep getting the “dhtmlXCombo is not defined” error. I have included the same js files I used in the other grids I have created. So I am very confused on why I can’t get it working. I have included codebase/ext/dhtmlxcombo.js AND source/codebase/dhtmlxcombo.css.







function doInitRegionalMinstrySubGrid(subGridObj,rowId,rowIndex) {



var subGridQString = “regionalXML.php”;



subGridObj.setImagePath("…/source/codebase/imgs/");



subGridObj.setHeader(“img:[export_button.jpg],Regional Ministry,Total Purchase”);

    

         subGridObj.setInitWidths(“45,350,895”);

    

         subGridObj.setColAlign(“center,left,right”);

    

         subGridObj.setSkin(“modern”);

        

         // sort the first column as string (str) and the second and third as number (int)

         subGridObj.setColSorting(“server,server,server”);

        

         // set column and edit types – str type won’t export, must be ro (read-only)

         subGridObj.setColTypes(“sub_row,ro,price”);

        

         subGridObj.attachHeader(" ,#combo_filter,#numeric_filter");

        

         subGridObj.init();

        

         subGridObj.enableSmartRendering(true);    

        

subGridObj.attachEvent(“onBeforeSorting”,function(ind,type,direct){

                this.clearAll(); // clear grid

                this.loadXML(subGridQString+(subGridQString.indexOf("?")>=0?"&":"?")+“orderby=”+ind+"&direct="+direct); //load a new dataset from the server, with necessary order                

                this.setSortImgState(true,ind,direct); //set a correct sorting image            

                

                return false;

            });

            

            subGridObj.attachEvent(“onSubGridCreated”,doInitLocalMinstrySubGrid);                        



subGridObj.loadXML(subGridQString,function(){             

            // Does not need to resize itself since it is first level

            });

            

            // CSV EXPORTING

            // Adding on click event to first header cell

            subGridObj.hdr.rows[1].cells[0].onclick=function(e){

            (e||event).cancelBubble=true; // block sort click event for 1st header row and first cell

            showWindow(subGridObj, ‘Regional Ministries\tTotal Purchase\n’); // Must espcape the

        };

        

        // Block the sorting event for the entire 2nd header (2nd row)

        subGridObj.hdr.rows[2].onclick=function(e){

            (e||event).cancelBubble=true; // block sort click event for 1st header row and first cell                          

        };

}

There are only two possible reasons of such issue

a) you have not included dhtmlxcombo.js
b) you have included files in next order
dhtmlxcombo_ext.js // or any other extension
dhtmlxcombo.js
combo extensions must be included only after main combo file.

If issue still occurs - please provide any kind of sample where it can be reconstructed ( you can send it directly to support@dhtmlx.com )