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_Related Related Topics sp_TopicIcon
New User: Just getting a Loading... message
Tags: noob
28/05/2010
23:31
Avatar
bkearney
New Member
Members
Forum Posts: 2
Member Since:
28/05/2010
sp_UserOfflineSmall Offline

I am checking out the tool and doco, and things looked pretty good. I integrated jquery 1.4.2 and jqGrid 3.6.5. When I attempt to load the data.. all I get in the screen is a "Loadng…" box [1]. The data comingback seems to match the expected data structure with the excpetion of order:

You can see the data at the bottom of [1]. I can not paste the json here 🙁

My code for invoking the Grid is:

%table#t2
#pager
 
:javascript
    jQuery(document).ready(function(){
      jQuery("#t2″).jqGrid({
        url:'/consumertypes.json',
        jsonreader: {cell:"", id:0, repeatitems:true},
        datatype: 'json',
        mtype: 'GET',
        colNames:['ID','Label'],
        colModel :[
          {name:'id', label:'ID', width:55},
          {name:'label', label:'Label', width:90},
        ],
        rowNum:10,
        rowList:[10,20,30],
        sortname: 'label',
        sortorder: 'desc',
        viewrecords: true,
        caption: 'Consumer Types'
      });
    });

So.. a couple of questions..

1) Are the latest versions incompatible?

2) Does the order of the data coming back matter? The doco shows numbers as strings, does that matter?

2) Am I making some other stupid user error (pebkac)?

Thanks in advance!

[1] http://bkearney.fedorapeople.o.....jqGrid.png

30/05/2010
00:44
Avatar
tim
Calgary Alberta Canada
Member
Members
Forum Posts: 61
Member Since:
04/11/2009
sp_UserOfflineSmall Offline

1. I use jquery 1.4.2 and jqGrid 3.6.5. with no problems.

2. The order of the data coming back doesn't matter.

The only thing I see wrong with you code is the extra comma at the end of this line:

{name:'label', label:'Label', width:90},

I don't see anything wrong with your json.

Sometimes I get the same hanging, but normally it's because I made some change to some js that creates an error (like an 'undefined' variable somewhere).

tim

01/06/2010
17:56
Avatar
bkearney
New Member
Members
Forum Posts: 2
Member Since:
28/05/2010
sp_UserOfflineSmall Offline

OK.. stupid noob error. jsonreader should have been jsonReader

uugh.

-- bk

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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