Mr W
Mr W

Reputation: 676

jqgrid resizable

Does anybody know how to make a jqGrid resizable? I want that sweet little handle in the down right corner.

Upvotes: 3

Views: 7098

Answers (2)

Hong Van Vit
Hong Van Vit

Reputation: 2986

You can use:

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

Upvotes: 0

Oleg
Oleg

Reputation: 222017

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".

Upvotes: 7

Related Questions