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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -