2013-02-18 63 views

回答

0

添加一個空白列在最後,然後滾動條會去那裏。

這樣做在您的網格設置通過追加一個空白值到你的數據行:

 beforeProcessing: function (data, status, xhr) { 
      //add the spaces to the returned data to allow for the blank vertical columns in the grid 
      for (var x = 0, length = data.rows.length; x < length; x++) { 
       data.rows[x].cell.splice(5,0, ""); 
      }//for 
     }, //beforeProcessing 

額外的價值添加到您的列:

'Fournisseur<br/>Commande', 
       'Contenu', ''], 

然後在空白欄內定義添加:

{ name: "empty1", width: 10, sortable: false, hidedlg: true, search: false, resizable: false, fixed: true }, 
+0

此解決方案在Firefox中運行,但不在Chrome中,我需要優先於Chrome – Nono 2013-02-19 08:49:53