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