Forum

July 12th, 2025
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_TopicIcon
Upgrade from 3.6.5 to 3.7.2 Issue
17/08/2010
23:45
Avatar
Pieter
Member
Members
Forum Posts: 4
Member Since:
17/08/2010
sp_UserOfflineSmall Offline

I 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

17/08/2010
23:50
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

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.

18/08/2010
00:05
Avatar
Pieter
Member
Members
Forum Posts: 4
Member Since:
17/08/2010
sp_UserOfflineSmall Offline

tony said:

Hello,

The version of jQuery in first 3.6.5 and in second 3.7.2 case?

Regards

Tony


jQuery v1.4.1

Pieter

18/08/2010
01:17
Avatar
Pieter
Member
Members
Forum Posts: 4
Member Since:
17/08/2010
sp_UserOfflineSmall Offline

That is: I'm using jQuery v1.4.1 for both versions of jqGrid.

Pieter 

19/08/2010
22:21
Avatar
Pieter
Member
Members
Forum Posts: 4
Member Since:
17/08/2010
sp_UserOfflineSmall Offline

Anyone 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

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information