2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

How to hide the inline search by default JQGrid table?

How to hide the inline search by default JQGrid table? Need a complete example to do it.

userimage

Try below code for

var myGrid = $(‘#mysimpletable’).jqGrid({
     url:<value>,
    ….//.other options
   }).navButtonAdd("<
<pagerid>>",{caption:"",title:"Toggle Search Toolbar", buttonicon :'ui-icon-search', onClickButton:function(){ mygrid[0].toggleToolbar() } }); //icon to add the search bar with search textbox
mygrid.filterToolbar(); //adds the search toolbar
mygrid[0].toggleToolbar();//hide the toolbar by default
Answer is