javascript - How can I insert a scrollbar in jquery jtable? -
i using great jquery plugin jtable. can't find examples showing vertical scrollbar.
i tried setting height , overflow.auto on div contains - scrollbar scrolls whole table including header - want scroll rows not header , not footer.
has found way this?
a solution works way inserting:
$('.jtable').wrap('<div class="jtable-main-container scroll-content" />');
and
.scroll-content { overflow-y: auto; width:100%; } div.jtable-main-container { height:100%; }
and setting height on div. scrolls table header - better scrolling whole jtable - tried make solution jtable generates 2 tables - 1 header , 1 body header gets out of sync.
see here: http://jsfiddle.net/j5q4l/3/
$('.jtable').wrap('<div class="jtable-main-container scroll-content" />'); , .scroll-content { overflow-y: auto; width:100%; } div.jtable-main-container { height:100%; }
thank you!
Comments
Post a Comment