jqGrid - Существует ли способ всегда отобразить вертикальную полосу прокрутки?

Попробуйте эту внутреннюю часть Основной метод в пустой консольной программе:

MethodBase method = MethodBase.GetCurrentMethod();
Console.WriteLine(method.Name);

Консольный Вывод:
Main

7
задан Justin Ethier 15 October 2009 в 21:02
поделиться

3 ответа

overflow-y is CSS3, and it's not yet fully supported by IE (sigh...)

So, I guess the only 2 CSS things you can do about this, without any other markup involved, is to use either overflow: auto (which will let the browser decide) or overflow: scroll, which will force both the vertical AND the horizontal scrollbars.

A workaround may be to wrap the whole grid in a bigger div with a min-height, so you set that equal to the browsers window + 1px. That way you'll force a vertical scrollbar.

Setting a min-height may be tricky to do in all browsers, but I found this works great in most of them.

.the-wrapper{
  height: auto !important; /* for real browsers*/
  height: 601px;           /* IE6 will use this a min-height. Use any height you need - you can even set this using JavaScript depending on the browser window height */
  min-height: 601px;       /* for real browsers - same value as height */
}

Of course, this will add some space below the grids. Welcome aboard!

14
ответ дан 6 December 2019 в 12:52
поделиться

Вы пробовали jQgrid 3.6 beta? В ней много новых функций, например: Строки с истинной прокруткой Думаю, это решение для вас.

Демонстрация новых возможностей: http://www.trirand.com/jqgrid/jqgrid36/jqgrid.html

Также добавлен новый метод: gridResize , который может изменять размер сетки. http://github.com/tonytomov/jqGrid/commit/a008ebf7b8ad684b21e51f21eed4301b82bc66f2

0
ответ дан 6 December 2019 в 12:52
поделиться

Вы установили свойство высоты для сетки? IE может раздражаться из-за полос прокрутки, если высота не задана.

1
ответ дан 6 December 2019 в 12:52
поделиться
Другие вопросы по тегам:

Похожие вопросы: