Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setGridWidth & minColWidth #506

Open
sba-github opened this issue Apr 20, 2022 · 0 comments
Open

setGridWidth & minColWidth #506

sba-github opened this issue Apr 20, 2022 · 0 comments

Comments

@sba-github
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant