Forum



15:32

05/10/2011

Hi,
I have a following grid:
$("#reportTable").jqGrid({
url:'someUrl',
datatype: "json",
colNames:['Error count','Object', 'System', 'Error Code','Direction','Description'],
colModel:[
{name:'count',index:'count', width:45, sorttype:"int", fixed: true},
{name:'object',index:'object', width:120, fixed: true},
{name:'system',index:'system', width:100, fixed: true},
{name:'errorCode',index:'errorCode', width:120, formatter: formatLink, key: true, fixed: true},
{name:'direction',index:'direction', width:200, fixed: true},
{name:'description',index:'description', width:80}
],
rowNum:-1,
sortname: 'count',
sortorder: "desc",
loadonce: true,
caption: "Result",
cellEdit: false,
autowidth: true,
height: "auto",
ajaxGridOptions: { timeout: 30000 },
postData: {
fromDate: function() {return $('#fromDate').val()},
fromTime: function() {return $('#fromTime').val()},
toDate: function() {return $('#toDate').val()},
toTime: function() {return $('#toTime').val()}
},
jsonReader : {
root: "errorReportModel",
repeatitems: false
}
});
The problem is that after sorting one row is missing. When first loaded everything is ok. But after sorting last row (different row depending on the sort condition) is always missing. It is purely display problem because this row is displayed when you change sort order again (but other is missing). I am using JQ 1.6.4 and newest jqGrid, but it is the same on JQ 1.5.2.
04:36

Moderators
30/10/2007

Hello,
As I see the sort does not depend on the grid, but in your script server side.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
44 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66