The grid is not displayed fully and also there is no scrollbar.
so i can only see first 5 columns of a 10 column table.
Please check after adding following.
$grid["autowidth"] = true;
$grid["autoresize"] = true;
It's not fully responsive but work after zooming in mobile devices.
Thanks for the quick reply!
1) i tried with the above code. the entire table is shrinked and we need to resize it.
with the normal code i am not able to see the scrollbar using my iphone but, when i am running though online iphone simulation i am getting the scrollbar..
2) i also want to resize selected column width. how to do it?
1) After some research, i found this reason for scrollbar in iphone.
"This isn't a bug in jqgrid, it's a limitation of the iphone's browser. The iphone browser has no concept of scrollbars on any elements."
Suggested solution is to add grid height to auto, to set height based on # of records.
$opt["height"] = "auto";
2) To resize column width, you need to define column properties and set, e.g.
$col["width"] = "30";
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!