0

I am working in "jquery.jqGrid-4.4.1" version of jqgrid. I have huge data to show in grid that's why I need dynamic loading on scroll. I set scroll to 1 its working fine without grouping. Following is the example of using scroll but grouping is set to false.

{
....
rownum: 30,
scroll: 1,
grouping: false, 
groupingView : { 
    groupField : ['BillTitle'],
    groupColumnShow : [true], 
    groupText : ['<b>{0}</b>'], 
    groupCollapse : false, 
    groupOrder: ['asc'], 
    groupSummary : [true], 
    groupDataSorted : true    
   }, 
}

On the other end I need to use grouping of jqgrid, when I set grouping to true dynamic loading of scroll not working. Following is not working but I need both functionality.

{
....
rownum: 30,
scroll: 1,
grouping: true, 
groupingView : { 
    groupField : ['BillTitle'],
    groupColumnShow : [true], 
    groupText : ['<b>{0}</b>'], 
    groupCollapse : false, 
    groupOrder: ['asc'], 
    groupSummary : [true], 
    groupDataSorted : true    
   }, 
}

Please help me. Your help should be highly appreciated.

4

2 回答 2

1

正如维基页面所说:

限制

启用分组后,将在代码中显式设置以下选项:

scroll = false;
rownumbers = false;
treeGrid = false;
gridview = true (afterInsertRow does not fire too);

我遇到了同样的问题。目前,没有办法实现这一点,但它会非常好。也许有一些代码编辑。

于 2012-11-08T14:51:28.617 回答
0

我有完全相同的问题,但发现如果将 rowNum 设置为 -1,它将显示所有分组数据。奇怪的是,在文档中 rowNum 上的 -1 选项被明确删除:http ://www.trirand.com/jqgridwiki/doku.php?id=wiki:options

于 2013-01-10T11:24:30.880 回答