rownumbers 在 jsgrid 中不起作用,想要显示记录总数(行)

rownumbers is not working in jsgrid, want to show total numbers of records (row)

rownumbers 在 jsgrid 中不起作用,想显示记录总数(行)。我想在分页数据的右侧显示它。

$("#jsgrid").jsGrid({
    autoload: true,
    width: "100%",
    filtering: true,
    editing: true,
    paging: true,
    multiselect:true,
    pageSize: 3,
    pageButtonCount: 2,
    sorting: true,
    rownumbers:true,
    controller: {
        loadData: function() {
            return data;
        }
    },
});

Jsfiddle Link

根据documentation,您可能需要pageFormat,使用{itemCount}显示项目数:

$("#jsgrid").jsGrid({
    /* Other parameters here */
    pagerFormat: "Pages: {first} {prev} {pages} {next} {last}    {pageIndex} of {pageCount} Total rows: {itemCount}"
});