DhtmlxCombo : reset input on onclick

Hi,

I use combo with filtering mode. When user type data in combo, data are filtered. But when user click on combo, I want see all options of combo and no just his selection. A idea is to reset input when user click on combo.

The question : how to add event onClick on combo ? Have you got another idea ?

Thanks

Can be done with indirect code modifications
    var combo = new dhtmlXCombo(…
    combo._toggleSelectA=combo._toggleSelect;
    combo._toggleSelect=function(){
       combo.setComboText("");
       combo.filterSelf();
       combo._toggleSelect.apply(this, arguments);
    }


I’m trying to do the same thing, but that code does not work for me. Here is the code on my page:



How can I change it?

Thanks.

Thanks for your response.
I redefine _toggleSelect function, I add 2 instructions.

         dhtmlXCombo.prototype._toggleSelect = function(e)
         {
            var that=this.combo;
            if ( that.DOMlist.style.display == “block” ) {
            that.closeAll();
            } else {
               that.openSelect();
               that.setComboText("");
               that.filterSelf();
            }
            (e||event).cancelBubble = true;
         }
It’s work, thanks !