Forum
Topic RSS
22:18
29/06/2010
OfflineHello,
I am implementing jqGrid for the first time in a PHP project I am working on and have come across a problem when trying to enable the search feature. I get an error message: "Uncaught Exception: jqGrid - No such method: searchGrid".
The code I'm using is:
jQuery(document).ready(function(){
jQuery("#accessLog").jqGrid({
url:'datagrid.php',
datatype: 'json',
mtype: 'GET',
colNames:['Employee Name','Access Level','Log In Time','Log Out Time','Days Since Last Log In'],
colModel :[
{name:'name', index:'firstname', width: 200, search: true},
{name:'accesslevel', index:'accesslevel'},
{name:'lastlogin', index:'lastlogin'},
{name:'lastlogout', index:'lastlogout'},
{name:'logindays', index:'logindays'}
],
pager: '#pager',
height: 250,
rowNum:10,
rowList:[10,20,30],
sortname: 'firstname',
sortorder: 'desc',
viewrecords: true,
width:900,
});
});
</script>
I've downloaded the grid base and additional methods for searching, but I may have not reference the search JS file properly? Ideally I would like to see the magnifiying glass type icon in the bottom left corner of some of the demo grids!
Any help would be be much appreciated!
Adam
Most Users Ever Online: 994
Currently Online:
24 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
Log In
Home