开发者

jqgrid resizable

Does anybody know how to make a jqGrid resizable? I want that sweet lit开发者_如何学JAVAtle handle in the down right corner.


You can use

jQuery('#list').jqGrid('gridResize');

(see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#resizable_grid). You should don't forget include jQuery UI and during download of jqGrid include "jQuery UI addons".


You can use:

$(window).on("resize", function () {
        var wd = 1000;
        $(grid_selector).setGridWidth(wd);
    }).trigger("resize");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜