2013-02-18 30 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