3

我有一个固定的标题栏,但 jqgrid 元素无法正确滚动...当我滚动文本时,文本位于标题栏后面(正确),jqgrid 不正确(错误)

我该如何解决这个问题?

提前排队!罗比

编辑:截图:https ://docs.google.com/open?id=0BxGEE1yw1kGwLVdOVzdKRWlDcTA

代码非常简单:

<div id='divListVol' class='divList stat' > 
        <!-- Lista dei volontari -->
        <table id="listVol" class='stat'></table>
        <div id="pagerListVol" class='stat'></div>
 </div>

jQuery("#listVol").jqGrid({
            url: 'php/getVolontari.php?for=list',
            datatype: "json",
            contentType: "text/plain; charset=ISO-8859-1",
            loadonce:true,
            colNames:['Cod','Cognome', 'Nome','Modifica!'],
            colModel:[ {
                name:'id',
                index:'id',
                sortable: false,
                width: 10
            },{
                name:'cognome',
                index:'cognome',
                sortable: true,
                width: 35

            },{
                name:'nome',
                index:'nome',
                width: 35
            },{
                name:'modifica',
                index:'modifica',
                sortable: false,
                width: 20

            }],
            onSelectRow: function(rowid) { 
           $.ajax({
              url: "php/myRequest.php?for=info&id="+rowid,
              type:"GET",
              dataType: "json",
              success: function(response) {.....},
              error: function(response) { ... }

            });


            },
            onCellSelect: function (rowid, iCol) {
                ...
            },
            rowNum:30,
            rowList:[10,20,30], 
            height: 'auto',
            width: 455,
            ignoreCase: true,
            autowidth: true,
            pager: '#pagerListVol',
            sortname: 'cognome',
            viewrecords: true, 
            sortorder: "asc", 
            caption:"Lista Volontari",
            multiselect: false,
        });
        jQuery("#listVol").jqGrid('navGrid','#pagerListVol',{refresh:true, search:true, add:false,edit:false,del:false});
4

1 回答 1

0

从技术上讲,jqGrid 只是一个 DOM 元素,您应该能够通过调整 CSS 属性来解决您的问题,例如position: relative | fixed | absolute;

您似乎没有提供那么多信息,所以我可以完全回答您的问题。您能否通过提供托管 jqGrid 的容器的 CSS 来更具体一些?

谢谢。

于 2013-01-03T13:54:45.217 回答