extjs - Ext.Net - Create Ext.MessageBox.confirm in code behind -


there way create ext.messagebox.confirm in code behind?

try:

public void myfunction() {     x.msg.confirm("message", "it'ok??", new messageboxbuttonsconfig     {         yes = new messageboxbuttonconfig         {             handler = "companyx.it_s_ok()",             text = "ok"         },         no = new messageboxbuttonconfig         {             handler = "companyx.it_s_ko()",             text = "ko"         }     }).show(); }  [directmethod(namespace = "companyx")] public void it_s_ok() {     //your ok function }  [directmethod(namespace = "companyx")] public void it_s_ko() {     //your ko function } 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -