Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vikram on Feb 19, 2009 01:05
open dhtmlx forum
Make Grid Modal within a Window

I have a Modal Window which has 2 components attached,a tabbar and grid attached to a tabbar.When I activate the setModal() property on the Window only the title of the window is becoming modal.However the the tabbar and the grid attached is still active.How do I deactivate the grid within a window??

Answer posted by Alex (support) on Feb 23, 2009 08:42

If tabbar with grid is attached to some window from some windows collection and another window from this collection is assigned as "modal", the tabbar and grid become disabled as well as their window. 

But if tabbar is part of the active window (which is assigned as modal),  the tabbar and the grid won't be disabled. And this is correct behaviour.  In order to disable tab selection you can use the following tabbar method:

dhxTabbar.setOnSelectHandler(function(id){

return false;

})