A simple example of a Jqgrid table changing with the window size
- 2020-03-30 01:09:47
- OfStack
With the jquery plug-in, the main implementation is that when the window changes, the jqgird table also changes in size
HTML:
< Div id = "liste" >
< Table id="list" class="scroll" cellpadding='0' cellspacing='0' > < / table>
< Div id = "pager" class = "scroll" style = "text - align: center;" > < / div>
< / div>
JS:
$(function () {
$(window). The resize (function () {
$(" # list "). SetGridWidth ($(window), width ());
});
});