Hello, There is a method for this purpose and your code can look like this (see documentation at http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods#add_on_grid_methods )
$("a.show-grid").click(function(e){ //code to open/show the grid which is now collpased. $("#mygrid").jqGrid('setGridState','hidden');//or 'visible' return false; }); Hope this helps Tony On 5 Ноем, 01:29, Massimiliano Marini <max.linuxt...@gmail.com> wrote: > Hi all, > > I'm usingjqgridwith: hiddengrid: true, when the page is loaded the > grid is collapsed. > > I ask if there's a way to open/show the grid when I made a click event > on a link. > > In example: > > $("a.show-grid").click(function(e){ > //code to open/show the grid which is now collpased. > e.preventDefault(); > > }); > > -- > Massimiliano Marini -http://www.massimilianomarini.com > "It's easier to invent the future than to predict it." -- Alan Kay