[CLOSED] How to remove 'X' (window close) for popup window?

  1. #1

    [CLOSED] How to remove 'X' (window close) for popup window?

    Hi,

    In a web form we can hide or remove 'X' for window (like login window) with "Closable=false". I would like to implement the same for popup window, and I have implemented this closable property for popup window as below...but still the 'X' is showing

    
    var OpenAccountCreation = function (idVal) {
                var windowConfig = {
                    id: "WinNewAccountScreen",
                    height: 520,
                    width: 800,
                    hidden: false,
                    Closable: false,
                    title: "Create a New User",
                    buttonAlign: "center",
                    iconCls: "icon-userstar",
                    listeners: {
                        hide: {
                            fn: function (el, e) {
                                Ext.getCmp('WinNewAccountScreen').getBody().btnCheckToDelete.fireEvent('click');
                            }
                        }
                    },
                    buttons: [
                        {
                            id: "btnSaveUser",
                            text: "Save",
                            iconCls: "icon-disk",
                            listeners: {
                                click: {
                                    fn: function (el, e) {
                                        parent.parent.Ext.getCmp('WinNewAccountScreen').getBody().btnSaveInfo.fireEvent('click');
                                    }
                                }
                            }
                        },
                        {
                            id: "btnUserProfileClose",
                            text: "Close",
                            listeners: {
                                click: {
                                    fn: function (el, e) {
                                        parent.parent.Ext.getCmp('WinNewAccountScreen').hide();
                                    }
                                }
                            }
                        }
                    ],
                    autoLoad: {
                        url: "User/ExtTestAccount.aspx?" + new Date().getTime(),
                        nocache: true,
                        mode: "iframe",
                        showMask: true,
                        triggerEvent: "show",
                        reloadOnEvent: true
                    }
                }
                renderWindow(windowConfig);
            }
    Last edited by Daniil; Dec 31, 2011 at 8:22 AM. Reason: [CLOSED]
  2. #2
    Hi,

    JavaScript is a case-sensitive language, the "closable" config option has the lower-case first letter.
    http://docs.sencha.com/ext-js/3-4/#!...l-cfg-closable
  3. #3
    Hi Daniil,

    Thak you. It is working

    Quote Originally Posted by Daniil View Post
    Hi,

    JavaScript is a case-sensitive language, the "closable" config option has the lower-case first letter.
    http://docs.sencha.com/ext-js/3-4/#!...l-cfg-closable

Similar Threads

  1. Replies: 1
    Last Post: Jun 18, 2012, 3:41 PM
  2. [CLOSED] Button event is not firing in parent window from popup window
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 14, 2011, 7:35 PM
  3. Replies: 1
    Last Post: Mar 14, 2011, 4:20 PM
  4. Replies: 1
    Last Post: Mar 11, 2011, 10:07 PM
  5. Replies: 1
    Last Post: Apr 01, 2009, 12:24 PM

Tags for this Thread

Posting Permissions