PDA

View Full Version : Issue with Confirm message box



kantha.exe
21 Jun 2012, 5:07 AM
Hi

I want to disable Close Button [X] in
Ext.MessageBox.confirm .....

I tried with closable: false but not working.....

any Idea....?:-?

friend
21 Jun 2012, 5:54 AM
Ext.Msg.confirm() is a convenience method which doesn't give you a lot of control over the underlying Window.

You can easily 'roll your own':



Ext.Msg.show({
closable: false,
msg: 'Are you sure you want to continue?',
title: 'Confirm',
buttons: Ext.Msg.YESNO,
width: 300,
fn: function(buttonId) {
if (buttonId == 'yes') {
Ext.Msg.alert('Woohoo!', 'You chose yes!');
}
}
})

kantha.exe
21 Jun 2012, 9:07 PM
Ok Thanks ...
i will try....

kantha.exe
26 Jun 2012, 3:19 AM
Ya Thanks Its Working fine....:D