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