Forum


22:21

26/08/2010

Hi,
I am trying to implement jQGrid but it is showing very inconsistent behavious. Sometimes it is able to show data properly and everything works fine. But then when I reload the page search button and reload button (in pager section) goes away suddenly. and then again sometime it starts showing things as "undefined". Also I am seeing so many Javascript errors for the library files.
<
link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.4.custom.css" type="text/css" media="all" />
<
link rel="stylesheet" href="css/ui.jqgrid.css" type="text/css" media="all" />
<
link rel="stylesheet" href="css/jquery.searchFilter.css" type="text/css" media="all" />
<
link rel="stylesheet" href="css/ui.multiselect.css" type="text/css" media="all" />
<script type="text/javascript" src="<s:url value="/js/jquery.js"/>"></script>
<script type="text/javascript" src="<s:url value="/js/jquery.jqGrid.min.js"/>"></script>
<script type="text/javascript" src="<s:url value="/js/src/grid.loader.js"/>"></script>
<script type="text/javascript">
$(function() {
$("#grid").jqGrid({
url:data.action',
datatype: "json",
mtype: "GET",
loadonce:false,
colNames:['Name','Id', 'RO', 'Sion','Gion','Requested Date/By'],
colModel:[
{name:'name', index:'name', align:"left", sortable:true},
{name:'Id', index:'Id', align:"left", sortable:true},
{name:'ro', index:'ro', align:"left", sortable:false},
{name:'sion', index:'sion', align:"left", sortable:false},
{name:'gion', index:'gion', align:"left", sortable:false},
{name:'requestedByDt', index:'requestedByDt', align:"left", sortable:false}
],
jsonReader : {
root: "rows",
page: "page",
total: "total",
records: "records",
cell: "cell",
id: "id"
},
rowNum:10,
autowidth:true,
height:"100%",
rowList:[10,20,30],
pager: '#pgrid,
sortname: 'id',
viewrecords: true,
caption:" test",
rownumbers: true,
rownumWidth: 15,
altRows: true,
shrinkToFit: true
});
$("#grid").jqGrid('navGrid','#pgrid',{del:false,add:false,edit:false},{},{},{},{multipleSearch:true});
});
</script>
Also I am getting following Javascript errors about which I am not sure:
Object doens't support this property or method
grid.celledit.js line.30
Object doens't support this property or method
grid.postext.js line.10
Object doens't support this property or method
grid.setcolumns.js line.10
Object doens't support this property or method
grid.import.js line.10
...
..
22:51

26/08/2010

Just for begineers like me, facing similar issue.
I think the problem is fixed I re-did all imports only following are needed :
<
<
link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.4.custom.css" type="text/css" media="all" /> link rel="stylesheet" href="css/ui.jqgrid.css" type="text/css" media="all" />
<
<
<
script type="text/javascript" src="<s:url value="/js/jquery.js"/>"></script> script type="text/javascript" src="<s:url value="/js/i18n/grid.locale-en.js"/>"></script> script type="text/javascript" src="<s:url value="/js/jquery.jqGrid.min.js"/>"></script>
Thanks for hint steve
Most Users Ever Online: 715
Currently Online:
66 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