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
navgrid is not a function
29/10/2010
00:05
Avatar
opike
Member
Members
Forum Posts: 5
Member Since:
26/10/2010
sp_UserOfflineSmall Offline

I'm working on implementing the XML Example from here:

http://trirand.com/blog/jqgrid.....qgrid.html

And the table data seems to show up ok but I still get the following error message:

jQuery("#list1").jqGrid({url: "servera.php?q=1", datatype: "xml", colNames: ["Inv No", "Date1", "Client", "Amount", "Tax", "Total", "Notes"], colModel: [{name: "id", index: "id", width: 75}, {name: "invdate", index: "invdate", width: 90}, {name: "name", index: "name", width: 100}, {name: "amount", index: "amount", width: 80, align: "right"}, {name: "tax", index: "tax", width: 80, align: "right"}, {name: "total", index: "total", width: 80, align: "right"}, {name: "note", index: "note", width: 150, sortable: false}], rowNum: 10, autowidth: true, rowList: [10, 20, 30], pager: jQuery("#pager1"), sortname: "id", viewrecords: true, sortorder: "desc", caption: "XML Example"}).navGrid is not a function

29/10/2010
00:10
Avatar
opike
Member
Members
Forum Posts: 5
Member Since:
26/10/2010
sp_UserOfflineSmall Offline

Wanted to also mention in that prior to the above mention I was getting a different error message due to the fact that the listed code for the sample was missing a right paren and right curly brace. I removed the jQuery().ready (which the other samples in that group didn't have) and that got me past the first error but I'm still dealing with the "navGrid is not a function" error.

30/10/2010
02:09
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

I suppose you have wrong order of loading of JavaScript files. You should look at the documentation if it will not help, then post the whole code example including the HTML code with full JavaScript code.

Best regards
Oleg 

09/11/2010
21:14
Avatar
existentist
New Member
Members
Forum Posts: 1
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

uncaught exception: jqGrid – No such method: navGrid

I'm having the same issue. I've downloaded jqGrid 3.8.1 with all of the optional modules.

I'm calling a local json datasource (data.js) based on the (json example included with the documentation.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script type="text/javascript" src="js/grid.locale-en.js"></script>
    <script type="text/javascript">
        jQuery.jgrid.no_legacy_api = true;
    </script>
<script type="text/javascript" src="js/jquery.jqGrid.min.js"></script>

<script>
$(function() {
        jQuery("#list2″).jqGrid({
            url:'/js/data.js',
            datatype: "json",
            mtype: 'GET',
            colNames:['First Name','Last Name', 'Email', 'Phone','Cell','Department','Location'],
            colModel:[ {name:'First name',index:'firstname', width:90}, {name:'Last Name',index:'lastname asc, firstname', width:100}, {name:'Email',index:'email', width:80, align:"right"}, {name:'Phone',index:'phone', width:80, align:"right"}, {name:'Cell',index:'cell', width:80, align:"right"}, {name:'Department',index:'department', width:80,align:"right"}, {name:'Location',index:'location', width:150, sortable:false} ],
            rowNum:10,
            rowList:[10,20,30],
            pager: '#pager2',
            sortname: 'id',
            viewrecords: true,
            sortorder: "desc",
            caption:"Online Directory" });
            
            jQuery("#list2″).jqGrid('navGrid','#pager2',{edit:false,add:false,del:false});
        
    });
 </script>

for

<table id="list2″></table>
<div id="pager2″></div>

Any ideas?

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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