
Runner.buttonEvents["Print_Done"]=function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='Print_Done';if(!pageObj.buttonEventBefore['Print_Done']){pageObj.buttonEventBefore['Print_Done']=function(params,ctrl,pageObj,proxy,pageid,rowData,row,submit){var ajax=ctrl;params["txt"]="Hello";ajax.setMessage("Sending request to server...");}}
if(!pageObj.buttonEventAfter['Print_Done']){pageObj.buttonEventAfter['Print_Done']=function(result,ctrl,pageObj,proxy,pageid,rowData,row,params){var ajax=ctrl;location.reload();}}
$('a[id="Print_Done"]').each(function(){if($(this).closest('.gridRowAdd').length){return;}
this.id="Print_Done"+"_"+Runner.genId();var button_Print_Done=new Runner.form.Button({id:this.id,btnName:"Print_Done"});button_Print_Done.init({args:[pageObj,proxy,pageid]});});};