Forum
Topic RSS
23:45
17/08/2010
OfflineI need help with an issue that cropped up while upgrading to a newer version of jqGrid (3.6.5 -> 3.7.2). My searches in the forums have not popped up any obvious threads on this topic (feel free to point me in the right direction if you know otherwise).
The issue I'm seeing is that newer versions of jqGrid seem to discard key/value pairs added to rows when sorting the grid.
Here's an example:
var j = 0;
table.find('input').each(function(){
$(this).data('myAttr', j);
j++;
});
var input = table.find("#1").find('input');
console.log("before: " + input.data('myAttr'));
table.jqGrid('sortGrid', table.metadata().initialSort, false, 'desc')
console.log("after: " + input.data('myAttr'));
Using jqGrid 3.6.5 the output of before and after is as follows:
before: 0
after: 0
jqGrid 3.7.2 returns the following:
before: 0
after: undefined
Thoughts?
Pieter
23:50
Moderators
30/10/2007
OfflineHello,
The version of jQuery in first 3.6.5 and in second 3.7.2 case?
Regards
Tony
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.
22:21
17/08/2010
OfflineAnyone have any thoughts? If there's additional data I can provide, I'm happy to do it.
Question for the gurus: Was a change introduced between 3.6.5 and 3.7.2 in the way the grid is sorted? Without digging deeper, it seems like the grid might get completely deleted/refresh on sort, which then also removes any k/v pairs tied to html objects in the grid.
Pieter
Most Users Ever Online: 994
Currently Online:
19 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
Log In
Home