2013-02-27 97 views
0

目前我正在使用jqGrid的任務。我需要用jqGrid顯示一個垂直滾動條。如何在jqGrid中顯示垂直滾動條

$('#user-list').jqGrid({ 
      height: "auto", 
      width: "590", 
      url: getUsersForClientGroupUrl + "?random=" + Math.random(), 
      rowNum: 10, 
      mtype: 'POST', 
      viewrecords: false, 
      postData: { testGroup: gettestGroupId(), active: true }, 
      datatype: 'json', 
      colNames: ['testGroupID', 'Login', 'Role'], 
      pgbuttons: false, 
      pgtext: null, 
      viewrecords: false, 
      colModel: [ 
       { name: 'testGroupID', index: 'testGroupID', hidden: true }, 
       { name: 'Login', index: 'Login', search: false, width: 130 }, 
       { name: 'Role', index: 'Role', search: false, width: 100 } 
      ], 
      caption: "Users for test group: " + gettestGroupName(), 
      pager: '#users-pager', 
      ondblClickRow: function (userId) { 
       editUser(userId); 
      }, 
      sortname: 'Login', 
      sortorder: 'asc', 
      loadui: 'enable', 
      loadError: function (xhr, status) { 
       location.reload(); 
      } 
     }) 

**

  • 圖片詳細信息:

**

enter image description here

任何一個可以幫助我解決這個問題。

感謝&問候, 桑托斯·庫馬爾Patro當電網低於所分配的空間較大,所以你的情況變化的高度,從汽車到任何你喜歡的大小玩,你應該有出現

回答

0

垂直滾動條你垂直滾動條,請記住從目前的高度降低高度

+0

我試着用height屬性的各種組合發揮和設置滾動:真實的,但它不工作了IE9和Chrome瀏覽器。你能告訴我我是否錯過了jqGrid中的其他設置。 – 2013-02-28 07:23:05