PDA

View Full Version : [CLOSED] Window closeAction default changed from ExtJS from destroy to hide



jchau
Nov 28, 2012, 3:25 PM
ExtJS 4.1.3 docs say Ext.window.Window.closeAction defaults to 'destroy' but Ext.NET, it defaults to 'hide' instead. Was this intended and will it stay this way? I am creating windows in javascript.





Ext.window.Window.override({
closeAction : "hide",
defaultRenderTo : "body",

jchau
Nov 28, 2012, 3:28 PM
I think if you want all windows created on the server side to default to hide, the server control should send down the config closeAction: 'hide' instead of overriding the javascript class.

jchau
Nov 28, 2012, 3:32 PM
I just looked at Ext.NET v1.0 and the same override was there too so you can disregard my opening post. No need to remove the override since it has been there since v1.0. I will just keep this in mind when creating windows in javascript.

You can mark this as closed.

Vladimir
Nov 28, 2012, 3:33 PM
In Ext.Net, Hide close action was by default since Window class implementation (since Coolite 0.x versions) therefore Hide will be default value in future as well
It was changed because Hide mode is used more often than not under WebForm