Horizontal Scroll Bar

QuestionsHorizontal Scroll Bar
David Gilmore asked 7 years ago

Is there a way to place the horizontal scroll bar at the top of the grid?

3 Answers
Abu Ghufran answered 7 years ago

Hi,

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";

$g->set_options($grid);

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.

David Collett answered 7 years ago

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.

Abu Ghufran answered 7 years ago

I understand the issue now.

I prepared a demo using doublescroll jquery plugin.
Screenshot: http://prntscr.com/gbr93z
Code: https://gist.github.com/gridphp/e16cf1591a0cff8ab280776c1350c338 (line 133,239,243)

Your Answer

16 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?