PDA

View Full Version : Ext.Msg.confirm



Mounish S
12 May 2014, 4:45 AM
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.

scottmartin
12 May 2014, 9:31 AM
Perhaps you can use this approach instead and simply close the window as needed.



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
});

});