Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row number beginning from 2. #1063

Closed
hp3423 opened this issue May 11, 2024 · 5 comments
Closed

Row number beginning from 2. #1063

hp3423 opened this issue May 11, 2024 · 5 comments

Comments

@hp3423
Copy link

hp3423 commented May 11, 2024

Row number beginning from 2

@tonytomov
Copy link
Owner

Please provide enough information like demo code Guriddo version and browser

@hp3423
Copy link
Author

hp3423 commented May 13, 2024

$("#jqGrid").jqGrid({
        url: "roleQuery.do",
        ajaxGridOptions: {
            "type": "POST",
            "async": true,
            complete: function (xhr, status, errorThrown) {
                ajaxComplete(xhr, status, errorThrown);
            }
        },
        mtype: "POST",
        styleUI: 'Bootstrap',
        datatype: "json",
        colModel: [{
            label: '角色ID',
            name: 'roleId',
            width: 75,
            hidden: true,
            search: false
        }, {
            label: '角色名称',
            name: 'roleName',
            width: 75,
            hidden: false,
            search: true
        }, {
            label: '角色描述',
            name: 'roleDesc',
            autosize: false,
            width: 150
        }, {
            label: '创建时间',
            name: 'createTime',
            datefmt: 'Y-m-d H:i:s',
            sorttype: 'date',
            searchoptions: {
                dataInit: function (element) {
                    dateInit(element);
                },
                sopt: ["ge", "le", "eq"]
            },
            autosize: false,
            width: 150,
            editable: false,
        }
        ],
        colMenu: false,
        colOptions: {sorting: true, columns: true, filtering: false, seraching: false, grouping: false, freeze: true},
        autoResizing: true,
        autowidth: true,
        cellEdit: false,
        cellsubmit: "clientArray",
        editable: true,
        editurl: 'clientArray',
        validationCell: function (elem, error, iRow, iCol) {
            validationFailed(elem, error, iRow, iCol);
        },
        rownumbers: true,
        editNextRowCell: true,
        multiselect: false,
        multiSort: true,
		scrollrows:true,
        height: 350,
        viewrecords: true,
        rowList: [20, 40, 60, 80],
        rowNum: 20,
        pager: "#jqGridPager" 
});
`


on v5.8.5 is right(pic1),but on v5.8.6 the beginning row number is 2(pic2)
browser is Microsoft Edge
version 124.0.2478.97  (64)
[![pkeOMa4.jpg](https://s21.ax1x.com/2024/05/13/pkeOMa4.jpg)](https://imgse.com/i/pkeOMa4)
[![pkeOKZF.jpg](https://s21.ax1x.com/2024/05/13/pkeOKZF.jpg)](https://imgse.com/i/pkeOKZF)

@hp3423
Copy link
Author

hp3423 commented May 13, 2024

The other codes are the same, but the issue occurred when the version of jqgrid was changed

@tonytomov
Copy link
Owner

Thanks. Fixed.

@hp3423
Copy link
Author

hp3423 commented May 14, 2024

Thanks

@hp3423 hp3423 closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants