The first parameter to navButtonAdd is the ID of pager, e.g. in your case “#pager2”. The second parameter was just taken out of context from the example, in reality, you just do not need it. For example this is how you can have a “Toggle Filtering ToolBar” button in your toolbar
.navGrid('#pager2',{edit:false,add:false,del:false,search:false,refresh:false}) .navButtonAdd(“#pager2″,{caption:”Toggle”,title:”Toggle Search Toolbar”, buttonicon :'ui-icon-pin-s', onClickButton:function(){ mygrid[0].toggleToolbar() } })
There is a PDF help file in the Download section of this site, please download and open it and check out the “Custom Buttons” section.
Rumen Stankov
Trirand