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_TopicIcon
Local data manipulating error
17/03/2011
15:16
Avatar
macik
Member
Members
Forum Posts: 6
Member Since:
17/03/2011
sp_UserOfflineSmall Offline

Trying to fill table with local data, as described here: http://trirand.com/blog/jqgrid.....;-> Loading data ->Array Data

Get Error (on Line 2592 http://localhost/bm/js/jqGrid/.....id.base.js) : t.p is undefined

Here the sample JS code:  http://galaxyhost.org/jqt_tmp.js that init table and fill it.

thanks.

17/03/2011
16:00
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

In you code you call jQuery("#jqid").jqGrid('addRowData', i + 1, mydata[i]); out of the

$(function() {/* not here !!!*/});

so you can try to add the data before the page are loaged and before the grid inside of $(function()...) will be created.

In case that you have the grid data in the array (mydata) you can just use data:mydata parameter of jqGrid to fill the grid with data during creating of the grid.

Best regards
Oleg 

17/03/2011
22:53
Avatar
macik
Member
Members
Forum Posts: 6
Member Since:
17/03/2011
sp_UserOfflineSmall Offline

I'm novice with JqGrid and JS at all. So I waste a lot of time to understand why this problem occur. 

Checking all JS and CSS includes, trying different "example" data and so on.

So Thank you very much.  

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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