Popup closing on grid row select

Hello ,

I have a popup that contains a form. The form has a container element in wich a grid is defined.

When i try to select a row from grid the popup is hiding . The grid is considerate element outside of popup.

Is there a way to stop popup from hiding?


Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you don’t want to share your demo here for any reasons - you can send it to support@dhtmlx.com, if so - please include link to this forum topic.

If you’re using PRO Edition please send your demo to support@dhtmlx.com

Here is a complete demo using dhtmlx suite 4.6 standard edition. Problem persist in 4.6.1 pro.


Problem description: The popup is hidding when a row from grid is selected.



Please add the following after popup inited:

myPop._findGrid = function(obj, grid) { var gridFound = false; if (typeof(window.dhtmlXTabBar) == "function" && obj instanceof window.dhtmlXTabBar) { obj.forEachTab(function(tab){ var nested = tab.getAttachedObject(); if (gridFound == false && nested != null) { gridFound = gridFound||(nested==grid)||this._findGrid(nested); nested = null; } }); } // check if attached to form's container if (typeof(window.dhtmlXForm) == "function" && obj instanceof window.dhtmlXForm) { obj.forEachItem(function(id){ if (gridFound != true && obj.getItemType(id) == "container" && grid.entBox == obj.getContainer(id)) { gridFound = true; } }); } obj = null; return gridFound; };

It’ works perfect … thx