如何在JqGrid中显示行号?

İlk*_*mov 2 jquery numbers row line jqgrid

如何在JqGrid中显示行号?我的'grid.js'是:


    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"
        }

我不能每行添加自动编号.

Ole*_*leg 9

您应该首先阅读支持选项列表的官方文档.显示行号的选项是

rownumbers: true
Run Code Online (Sandbox Code Playgroud)