JQGrid How do I removed the annoying horizontal scrollbar when autowidth = true? (In IE)
Asked Answered
D

5

5

I seem to be getting an annoying horizontal scrollbar when using autowidth=true in IE

What is going on here and how do I get rid of it?

Annoying horizontal scrollbar

Demicanton answered 8/9, 2009 at 19:2 Comment(0)
T
4

Make your grid tall enough to contain all the rows. The horizontal scrollbar is there because the vertical scrollbar is taking up some of the width normally used by the rows.

Taunyataupe answered 8/9, 2009 at 20:18 Comment(0)
C
9

I got perfect Solution. The problem is in CSS. In ui-jqgrid.css the table layout is in Fixed. Make it as auto it will work perfectly. I just copied the same class i.e.,

.ui-jqgrid .ui-jqgrid-btable
{
  table-layout:auto;
} 
Clougher answered 28/6, 2012 at 8:59 Comment(0)
T
4

Make your grid tall enough to contain all the rows. The horizontal scrollbar is there because the vertical scrollbar is taking up some of the width normally used by the rows.

Taunyataupe answered 8/9, 2009 at 20:18 Comment(0)
M
2

Set the scrollOffset option to something like 20 - 30, this will fix the horizontal scrollbar adjustment problem.

Macmahon answered 30/12, 2010 at 6:17 Comment(0)
B
1

Set the scrollOffset to 18 - it's solve the problem. Quick and effective.

Thanks, Corey Schomer!

Blackout answered 12/1, 2011 at 12:23 Comment(0)
A
0

setting table-layout: auto could be slow. if you have lots of data

this is from w3school (http://www.w3schools.com/cssref/pr_tab_table-layout.asp)

Automatic table layout algorithm (this is default): The column width is set by the widest unbreakable content in the cells Can be slow, since it needs to read through all the content in the table, before determining the final layout

Aliquant answered 27/4, 2013 at 14:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.