Apr 20, 2011, 2:00 AM
[CLOSED] X.Msg.Show with JFunction
hi,
in client side [js] i do use code like this:
thanks,
in client side [js] i do use code like this:
Ext.Msg.show({ title: 'Saving New Record Status!',
msg: 'The new record created successfully!',
buttons: Ext.Msg.OK, icon: Ext.MessageBox.INFO, closable:false,
fn: function(buttonId, text) {
switch (buttonId) {
case 'ok':
doSomething();
break;
}
}
});
now in code behind i don't know how let the JFunction get (buttonId) parameter passed!X.Msg.Show(new MessageBoxConfig
{
Title = "Validation Failed!",
Message = "Please contact your administrator!",
Icon = MessageBox.Icon.ERROR,
Buttons = MessageBox.Button.OK,
Closable = false,
Fn = new JFunction().???
});
so can you show me how to do the buttonId part in code-behind?thanks,
Last edited by Daniil; Apr 20, 2011 at 11:36 AM.
Reason: [CLOSED]