Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jqgrid:如何更改寻呼机的布局?_Jqgrid - Fatal编程技术网

jqgrid:如何更改寻呼机的布局?

jqgrid:如何更改寻呼机的布局?,jqgrid,Jqgrid,我想更改寻呼机的布局,以便VCR按钮都分组在一起,然后是页码输入字段,然后是行数下拉列表。我将如何做到这一点 下面是我当前用于显示jqgrid的代码。这是标准JavaScript代码: $(function(){ $("#" + listName).jqGrid({ url: url, datatype: 'json', mtype: 'GET', colNames: columnNames, colModel: columnModel, p

我想更改寻呼机的布局,以便VCR按钮都分组在一起,然后是页码输入字段,然后是行数下拉列表。我将如何做到这一点

下面是我当前用于显示jqgrid的代码。这是标准JavaScript代码:

$(function(){ 
  $("#" + listName).jqGrid({
    url: url,
    datatype: 'json',
    mtype: 'GET',
    colNames: columnNames,
    colModel: columnModel,
    pager: pagerName,
    rowNum: displayRows,
    rowList: rowList,
    sortname: initSortCol,
    sortorder: initSortOrder,
    viewrecords: true,
    multiselect: multiSelect,
    gridview: true,
    caption: caption,
    height: height,
    jsonReader: {
            root: 'data',
            page: 'currentPage',
            total: 'totalPages',
            records: 'totalRows',
            repeatitems: false,
            id: dataModelRowId
        }
  }); 
  jQuery("#" + listName).jqGrid('navGrid','#' + pagerName,{edit:false,add:false,del:false,search:false});
带有页码、每页记录数的jqgrid示例

代码:

jggrid如下所示:


你能发布你的代码吗?我正在使用标准的JavaScript代码来显示网格。我还没有定制任何东西。我已经更新了我的帖子来展示我是如何调用jqgrid的。这并没有回答我的问题。我想知道如何将寻呼机按钮显示在一起,而不是被页面输入字段分开。
$(document).ready(function(){
    //jqGrid
    $("#librariesList").jqGrid({
        url:'<%=request.getContextPath()%>/Admin/getAllLibraries',
        datatype: "json",               
        colNames:['Id','Edit','Type','Created Date', 'Modified Date', 'Url', 'Use Url'],
        colModel:[
            {name:'libraryId', index:'libraryId',search:false, width:30,sortable: false,hidden:true},
            {name:'libraryId', index:'libraryId',search:false, width:30,sortable: false, formatter: editLink},
            {name:'type',index:'type',width:80},
            {name:'createdDate',index:'createdDate',width:150},
            {name:'modifiedDate',index:'modifiedDate',width:150},
            {name:'url',index:'url',width:150},
            {name:'useUrl',index:'useUrl',width:50},
            ],
            rowNum:20,
            rowList:[10,20,30,40,50],
            rownumbers: true,  
            pager: '#pagerDiv',
            sortname: 'createdDate',  
            viewrecords: true,  
            sortorder: "asc",
            autowidth:'true',
    });

    $('#gridContainer div:not(.ui-jqgrid-titlebar)').width("100%");
    $('.ui-jqgrid-bdiv').css('height', window.innerHeight * .55);
    $('#load_librariesList').width("130");
    $("#librariesList").jqGrid('navGrid','#pagerDiv',{edit:false,add:false,del:false},{},{},{},{closeAfterSearch:true});
    $(".inline").colorbox({inline:true, width:"20%"});
});
function editLink(cellValue, options, rowdata, action)
   {
    return "<a href='<%=request.getContextPath()%>/Admin/editLibrary/"+ rowdata.libraryId + "' class='ui-icon ui-icon-pencil' ></a>";
}