Results 1 to 2 of 2

Thread: Ext.Msg.confirm

  1. #1

    Default Ext.Msg.confirm

    Hi team,I am using Ext.Msg.confirm with button Ext.Msg.OKCANCEL . My requirement is when i click on 'OK' i need to open pop-up 1 and when i click 'Cancel' i need to open pop-up2 which is working fine . But issue is when i close the confirm message pop-up2 is getting open where Cancel and Close (*) is behaving same . But here i want to close the pop-up when i click on Close . Please help me on this ASAP.
    mouni

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716

    Default

    Perhaps you can use this approach instead and simply close the window as needed.

    Code:
    Ext.onReady(function() {
        var messageBox = Ext.create('Ext.window.MessageBox', {
            buttons: [{
                text : 'OK',
                handler : function() {
                    alert('OK');
                }
            }, {
                text : 'Cancel',
                handler : function() {
                    alert('Cancel');
                }
            }]
        });
    
        messageBox.show({
            title : "A Title",
            msg   : 'A Message',
            icon  : Ext.MessageBox.WARNING
        });
    
    });

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •