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 modaldialog
s 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
Post a Comment