Please see if this faq help.
Q) How can I set the width in this grid (even with horizontal scrollbar), i do not want to set screen size width but custom width size.
You need to set following params:
$grid["autowidth"] = false;
$grid["shrinkToFit"] = false; // dont shrink to fit on screen
$grid["width"] = "600";
If you dont specify the width property, it will be the sum of all columns width.
To make scroll bar visible, the sum of column width must increase grid width.
Thanks but I wanted to know if there is a way to place the horizontal scroll bar at the top of the grid? It shows up at the bottom just fine.
I understand the issue now.
I prepared a demo using doublescroll jquery plugin.
Code: https://gist.github.com/gridphp/e16cf1591a0cff8ab280776c1350c338 (line 133,239,243)
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?