jqGrid sorting on client side

前端 未结 3 725
甜味超标
甜味超标 2020-12-06 06:13

I have a tree-grid with autoloading rows. The goal is to sort the grid by tree column, right on client side.

But each time I click on sort column he

3条回答
  •  一向
    一向 (楼主)
    2020-12-06 06:38

    $(function () {
            $("#list").jqGrid({
                url: '/Data/GetGridData/-1',
                datatype: 'json',
                rowTotal: 2000,
                autowidth: true,
                height:'500px',
                mtype: 'GET',
                loadonce: true,
                sortable:true,
                ...
                viewrecords: true,
                caption: 'Overview',
                jsonReader : { 
                    root: "rows", 
                    total: "total", 
                    repeatitems: false, 
                    id: "0"
                },
                loadtext: "Loading data...",
            });
        }); 
    

提交回复
热议问题