sorry to bother, but i can’t get it to work. the buttons still appear.
this is my source for the pager where i have defined an additional button that calls the .editGridRow method:
// pager of fifth grid
$(â€#EditTableTableâ€).navGrid(â€#EditTablePagerâ€,{
refresh: true, edit: false, add: false, del: false, search: true
}).navButtonAdd(’#EditTablePager’,{
caption:—, buttonimg:â€images/edit.gifâ€, onClickButton: function(){
var rowID = $(â€#EditTableTableâ€).getGridParam(’selrow’);
if( rowID != null ) { $(â€#EditTableTableâ€).editGridRow(rowID,{
top:260,left:20,height:267,width:310,
reloadAfterSubmit:true,
editCaption:â€Grant Additional Pincode Registrationsâ€,
closeAfterEdit:true,
beforeShowForm: function(formid){
$(â€#pData #nDataâ€, formid).hide();
}
});
}
else alert(â€Please select a row…â€);
},
position:â€lastâ€
});
could you please have a look at it?
Thanks, Christoph