dhtmlxCombo Minimum Characters

Is there a way on the combobox to set a minimum number of characters that are entered before it calls for the XML?

I’m using autocomplete mode where it is calling a file with the options for the combobox.


Combo API doesn’t provide this functionality. You can modify the dhtmlxcombo.js as follows:


locate the filterSelf method and replace the highlighted line:


dhtmlXCombo.prototype.filterSelf = function(mode)


{
var text=this.getComboText();
if (this._xml){


with this one:


if (this._xml && (text.length >= MINIMUM_NUMBER)){


Where MINIMUM_NUMBER is the necessary number of characters.