Skip to content

setGridWidth & minColWidth #506

@sba-github

Description

@sba-github

Hello everybody!

I resize my grid when its bootstrap container size is changing by using :
$(window).bind('resize', function () { let col = theGrid.closest(".row").children().first(); theGrid.jqGrid("setGridWidth", col.width()); }).trigger('resize');

Maybe there is a smarter way, but I'm not a js/css expert. So please feel free to tell me a better way if so ;-)

Some columns are not fixed and should have a min width. I found autoResizing: { minColWidth: 200 } inside colModel, but this does not seem to be respected inside setGridWidth.

What could I do to make this work?

Thx,
Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions