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
$.jgrid.formatter is undefined error
08/10/2009
11:11
Avatar
Tevin
Guest
Guests

I downloaded the latest version of jqGrid (3.5.3), including all of the options. However, when I try to use it, I get the data back but it is not being formatted correctly (read "at all"). Firebug is giving me the error "$.jgrid.formatter is undefined" in the jQuery.jqGrid.min script. My code looks like this:

<script type="text/javascript">

jQuery(document).ready(function() {

jQuery("#grid").jqGrid({

jsonReader: {

root: "Rows",

page: "Page",

total: "Total",

records: "Records",

repeatitems: false,

userdata: "UserData",

id: "Id"

},

url: '/Test/TestGridData/',

datatype: 'json',

mtype: 'GET',

colNames: ['Id', 'Name', 'Internal ID'],

colModel: [

{ name: 'Id', index: 'Id' },

{ name: 'Name', index: 'Name' },

{ name: 'InternalId', index: 'InternalId'}],

pager: jQuery('#pager'),

rowNum: 10,

rowList: [5, 10, 20, 50],

sortname: 'Id',

sortorder: "desc",

viewrecords: true,

imgpath: '/scripts/themes/coffee/images',

caption: 'My first grid'

});

}); 

</script>

The jqGrid script is in the /Scripts directory, as is a Themes folder, and I have the following links in the <head> tag, above the above code:

 <link rel="stylesheet" type="text/css" href="/scripts/themes/coffee/grid.css" title="coffee" media="screen" />

    <script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="/Scripts/jquery.jqGrid.min.js" type="text/javascript"></script>

All of the files referred to are there. Does anyone have any ideas?

Thanks.

09/10/2009
04:09
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I think you will need to read this

http://www.trirand.com/jqgridw.....to_install

carfully. Please do not mix 3.4 with 3.5 installation

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.

19/11/2009
05:44
Avatar
Alex DeLarge
Guest
Guests

I had the same issue, it was because I wasn't including the locale script.

  <script src="/Scripts/js/il8n/grid.locale-en.js" type="text/javascript"></script>

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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