Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Miguel Lopez on Jul 17, 2008 05:11
open dhtmlx forum
Combo Frrezing Display Issue

Dear,
I am using your library dhtmlXgrid (which is great). However, I have a small problem with the combo.
When I select a combo list, the list is correctly displayed. If at this moment, I click eslewhere (another button), the combo list remains displayed. And, the only way to remove the combo list is to refresh the whole page.

Is there any way of avoiding this?

Many thanks,
Miguel Lopez
Answer posted by Support on Jul 17, 2008 06:03
Combo attaching event handler to document.body, and must close automatically if any click occurs inside document.
The mentioned situation may appears only if you have some custom code which catches and blocks onclick event

In any case, you can force combo closing by using
    combo.closeAll();

dhtmlxEvent(container,"click",function(){
    combo.closeAll();
})
where container html object which block access to document.body in your case