Forum



16:55

09/07/2010

Hello All,
I'm attempting to add the Toolbar Search to my jqGrid, but it simply is not showing up. When I reload the page, I get this error in the Firefox error console:
Error: $t.p is undefined
Source File: /static/js/jqgrid-dev/grid.custom.js
Line: 682
This error is when using standard jqGrid source ( 3.7 ). The minified version also has what I assume is the same error.
Thanks in advance,
Kyle
P.S. Apologies for the thousand edits. I've never used this forum before and am having a hard time formatting my HTML to be readable.
Here is my HTML:
<div id="panel-users">
<table id="user-list"></table>
<div id="user-pager"></div>
</div>
...
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#user-list").jqGrid({
url:'http://192.168.20.155:3000/admin/rest/users',
datatype: 'json',
mtype: 'GET',
colNames:['Id','Username', 'Minutes','Status','Message','Notes','Troublemaker','Client ID','Client Name','Status'],
colModel :[
{name:'id', width:1, hidden:true, key:true},
{name:'username', index:'username', search:true},
{name:'minutes', index:'minutes'},
{name:'status', index:'status', width:70},
{name:'message', index:'message', width:100},
{name:'note', index:'note', width:100},
{name:"troublemaker", index:'troublemaker'},
{name:"clientid", width:1, hidden:true},
{name:"clientname", index:'clientname'},
{name:"status", index:'status'}
],
gridview: true,
pager: '#user-pager',
height: '100%',
autowidth: true,
toppager: false,
rowNum:25,
rowList:[10,15,20,25,30,50,100],
sortname: 'username',
sortorder: 'desc',
viewrecords: true,
jsonReader : {
root: "rows",
page: "page",
total: "total",
records: "records",
repeatitems: true,
cell: "cell",
id: "id",
userdata: "userdata"
}
});
});
jQuery("#user-list").jqGrid('navGrid','#user-pager',{add:false,edit:false,del:false});
jQuery("#user-list").jqGrid('filterToolbar');
</script>
Most Users Ever Online: 715
Currently Online:
54 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