Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
After sort one row is missing
06/10/2011
15:32
Avatar
adie
New Member
Members
Forum Posts: 1
Member Since:
05/10/2011
sp_UserOfflineSmall Offline

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.

20/10/2011
04:06
Avatar
vagarenko
New Member
Members
Forum Posts: 1
Member Since:
20/10/2011
sp_UserOfflineSmall Offline

got the same problem

solved by setting rowNum to 1000

20/10/2011
04:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
57 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information