1

我正在使用最新的 jqGrid 版本,但我根本无法使冻结列正常工作。当我检查它时,我根本看不到标准网格上具有绝对位置的附加 div。这是我的 jqGrid 设置。

jQuery("#refTable").jqGrid({
            datatype: 'local',
            data: griddata,
            colNames: ['Reference Code','Full Citation','Primary Name Reference','Original Publication'],
            colModel: [                        
                       {name: 'reference.referenceCode',frozen:true},
                       {name: 'reference.fullCitation',frozen:true},
                       {name: 'primaryNameRefInd',width:180,align:'center',sortable:false,formatter:'checkbox'},
                       {name: 'originalPublicationInd',align:'center',sortable:false,formatter:'checkbox'}
                       ],
            //autoWidth:true,
            viewrecords:true,
            loadonce:true,
            gridview:true,
            ignorecase:true,
            height:'auto',    
            width:300,
            rowNum:5,               
            pager:'#refNav',
            sortable:true,
            sortname:'reference.referenceCode',
            //ExpandColumn:'reference.fullCitation',
            shrinkToFit:false,      
            forceFit:false,
            multiselect: false                  
        });             
        $("#refTable").parents('div.ui-jqgrid-bdiv').css("max-height","200px");
        jQuery("#refTable").jqGrid('navGrid','#refNav',{search:false,refresh:false});   

谢谢。

4

0 回答 0