I am working on ASP.net MVC. I have many dynamic and static jq grids in my application and facing horizontal scroll bar issue.
I did following code for overflow property:
.ui-jqgrid .ui-jqgrid-bdiv {
overflow-y: auto !important;
overflow-x: auto !important;
}
.ui-jqgrid .ui-jqgrid-btable {
overflow-y: auto !important;
overflow-x: auto !important;
}
I have set autowidth=true;
. I can not set shrinkToFit=false
as I am having another code on grid resize which will also resize column width.
As I have set overflow property to auto, I need same behavior of scrollbar also.
on loading grid for first time, horizontal scroll bar doesn't appear which is correct, after window resize, grid also resizes with columns and horizontal scrollbar appears which is correct. but when I tried to maximize screen, horizontal scrollbar shouldn't appear which is not happening. It still shows scrollbar. Can anyone help me?