View Full Version : overriding window panel closable

12 Jul 2012, 3:11 AM

I have editor grid panel,On one column model i have pop window on dbclick on cell pop window with some selection options,In that pop up window panel how i can override the closable function of pop up window right now am able disable and enable that option through winpanel.getColumnModel().getCoulmnById('clmn').editor.dlg.closable=true or false but how i can override this function any idea or suggestions.

12 Jul 2012, 4:03 AM
I'm not sure if this is what you're looking for, but you can catch the beforeclose (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.window.Window-event-beforeclose) event of the Window. If you return false from this event's code block, it will stop the close event from firing.