custom filter funcitonality

Hi,

I’m wondering if it’s possible to make custom filter functionality for dhtmlx combobox having the filtered feature on.

For example consider these entries :

  • John Wright - 723345
  • Jeff Jefferson - 723656

I want the combobox to filter the entries according to any criteria; firstname/ lastname/user id.

Preferably I don’t want to use the Ajax loaded data feature. That’s possible through an Ajax load but is that possible through a combobox with currently pre-filled values too ?

Thanks,
MajiD

Hello,

you may try to iterate though all combo options and hide unnecessary:

for(var i=0; i<combo.optionsArr.length; i++){ var text = combo.optionsArr[i].text; if(....) combo.optionsArr[i].hide(true); else combo.optionsArr[i].hide(false); }