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
setGridParam no longer loads data as of jQuery 1.8.3
17/06/2013
22:49
Avatar
jm44122
Member
Members
Forum Posts: 7
Member Since:
27/02/2012
sp_UserOfflineSmall Offline

We have not been frequently updating our jQuery or jqGrid versions. When trying to upgrade to the latest releases, I've discovered that setGridParam no longer works in my code. Since no one else seems to be having this issue, I am blaming my code, but cannot identify the problem.

When we were using jQuery 1.7.1 and jqGrid 4.4.1; all worked okay. I've tried a few versions of jQuery, and the issue seems to have started with the release of 1.8.3. Using that version and jqGrid 4.4.4; the data no longer shows in the grid. 

Here is a short bit of the program. trows is the JSON length returned from the $.ajax call. tdata is the JSON data. Stepping through a debugger, these values do exist when calling the jqGrid functions. Can someone point out what I may have missed in the release notes? Thanks.

$myTable

.jqGrid('clearGridData')

.jqGrid('setGridParam',

{

datatype: "local",

data: tdata,

rowNum: trows > 50 ? 50 : trows            

}

.trigger("reloadGrid");

20/06/2013
22:15
Avatar
jm44122
Member
Members
Forum Posts: 7
Member Since:
27/02/2012
sp_UserOfflineSmall Offline

Disregard. Apparently my code was affected by other jQuery issues that caused this command be set a negative value. The negative value resulted in the column headers being shown, but none of the data rows.

for example,

$myTable.jqGrid('setGridHeight', -100);

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
25 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