Forum


11:11

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.
04:09

Moderators
30/10/2007

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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66