c# - Is there a publicly accessible event to mark a ModalDialog close? -


i made custom ribbon in sitecore. 2 buttons in fire off command activate xaml application using sheerresponse.showmodaldialog. these applications effect state of database being read component on ribbon.

i either need able fire custom event or function xaml application make other ribbon component, or need able make component on ribbon aware needs re-render when modaldialogs close. don't see obvious events this, , i've gone far can when looking through raw code dotpeek , haven't seen looks promising.

apparently, answer there whole time , had missed it.

sheerresponse has 5 parameter version of showmodaldialog accepts boolean final parameter. means can couple clientpage.start:

    context.clientpage.start(this, "run", kv); }  private void run(clientpipelineargs args) {     var id = args.parameters["id"];     if(!args.ispostback)     {         string controlurl = string.format("{0}&id={1}", uiutil.geturi("control:altdelete"), id);         sheerresponse.showmodaldialog(controlurl,"","","",true);         args.waitforpostback();     }     else     {         logger.logdebug("post back");     }     logger.logdebug("out of if"); } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -