EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: phunksta on January 21, 2015, 03:30:53 AM



Title: Menu close inside Combogrid closes the combogrid
Post by: phunksta on January 21, 2015, 03:30:53 AM
Hi,

I have an issue with a menu button object inside a combogrid.
The menubuttons are generated from the datagrid filterrow extension, so have the filter operations listed.

When the user selects a filter, the menu closes but so does the combogrid. The user then has to re-open the combogrid to see the data.

I think I have tracked this down to this bit of code:

Code:
	$(function() {
$(document).unbind(".combo").bind("mousedown.combo mousewheel.combo", function(e) {
var p = $(e.target).closest("span.combo,div.combo-p");
if (p.length) {
_8d4(p);
return;
}
$("body>div.combo-p>div.combo-panel:visible").panel("close");
});
});

The .panel("close") line seems to be saying 'close any visible combo panel in the whole body'.
This seems a bit broad, when it is just an interaction with a single menu/combo!

Is there any way to keep the combogrid open when a menu button inside is used?

Thanks!


Title: Re: Menu close inside Combogrid closes the combogrid
Post by: stworthy on January 22, 2015, 08:07:39 PM
Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip.