PDA

View Full Version : Message box not close on single click



pmv
20 May 2010, 2:11 AM
Hi,
I created one JSON store and try to use this on one of the combo select when there is no value in that it throgh message. I tried this code it work but message box can't close on single ok click. Please help..

function createMobileVoucherStore() {
denoStore = new Ext.data.JsonStore({
autoLoad:false,
url: denoURL,
fields: ['DENO_ID','DENO_NAME','DENO_VALUE','VOUCHER_NO','VOUCHER_ID','OPERATOR'],
sortInfo: {
field: 'DENO_NAME',
direction: 'ASC'

},
listeners:{
load:{
fn:function(store,records,options){
if(store.getAt(0) == null){

//alert("Sorry ! recharge not available for that");//it hide on single click
Ext.MessageBox.alert('Error message', 'Sorry ! recharge not available for this');//it not hide on single click




}

}
}
}
});
}
thank u:-|

Condor
20 May 2010, 2:31 AM
So it doesn't close when clicking OK?

ps. An Ext.Msg.alert() is not really modal (it doesn't stop and wait for a button press). Could that have something to do with the problem?

pmv
20 May 2010, 2:39 AM
Thank u