I use code like this to add a button to the nav layer:
Html:
<table id='mygrid'> ... </table>
<div id='mygrid-panel' class='scroll'></div>
JS:
$("#mygrid").navButtonAdd('#mygrid-panel', {
caption: "New record",
title: "Click here to add new record",
buttonicon: "ui-icon-plusthick",
onClickButton: function() {
},
position: "first"
});
I hope I understand correctly what you want.