开发者

How to make a button to hide/show a jQuery grid

I need to remove a bu开发者_JAVA技巧tton that hides and shows a jQuery grid (the one on the right top of the grid). How can I do that?


You can set the hidegrid option to false:

$(selector).jqGrid({
    // ...
    hidegrid: false
});


put a button in the html with id showGrid and then use this

$("#showGrid").click(function (e){
       $("#myGrid").jqGrid('setGridState','visible');//or 'hidden' 
       return false; 
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜