
Runner.buttonEvents["PRINT"]=function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='PRINT';if(!pageObj.buttonEventBefore['PRINT']){pageObj.buttonEventBefore['PRINT']=function(params,ctrl,pageObj,proxy,pageid,rowData,row,submit){var ajax=ctrl;}}
if(!pageObj.buttonEventAfter['PRINT']){pageObj.buttonEventAfter['PRINT']=function(result,ctrl,pageObj,proxy,pageid,rowData,row,params){var ajax=ctrl;window.print();return false;}}
$('a[id="PRINT"]').each(function(){if($(this).closest('.gridRowAdd').length){return;}
this.id="PRINT"+"_"+Runner.genId();var button_PRINT=new Runner.form.Button({id:this.id,btnName:"PRINT"});button_PRINT.init({args:[pageObj,proxy,pageid]});});};