2014-09-13 568 views
2

如何在JqGrid中顯示行號? 我 'grid.js' 是:如何在JqGrid中顯示行號?

 

    grid : { 
      'url':'cs?action=getGridContent&gridType=1001', 
      'col_names':['№','Qeydiyyat nömrəsi','Qeydiyyat tarixi','İmzalayan şəxs' , 'İcraçı şöbə','','',''], 
      'col_model': [ 
       {name: 'r', index: 'r', sorttype: 'int', width:'10'}, 
       {name: 'col2', index: 'col2', sorttype: 'text', width:'40' }, 
       {name: 'col3', index: 'col3', sorttype: 'date', width:'30' }, 
       {name: 'col4', index: 'col4', sorttype: 'text', width:'35' }, 
       {name: 'col5', index: 'col5', sorttype: 'text', width:'30' }, 
       {name: 'docid', index: 'docid', sorttype: 'date', width:'10',hidden:true }, 
       {name: 'doctypeid', index: 'doctypeid', sorttype: 'date',  width:'10',hidden:true } , 
       {name: 'docclass', index: 'docclass', sorttype: 'date', width:'10',hidden:true } 
      ], 
      sortname: 'col3', 
      sortorder: "desc" 
     } 

我不能每行添加自動編號。

+0

請描述一下你的問題。謝謝 – 2014-09-13 13:03:21

回答