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