Forum



22:05

27/07/2010

I'm having a problem with the navigation bar. For some reason, I cannot easily see the various buttons (e.g. edit, add, etc.). I'm assuming that I'm doing something wrong, but I can't seem to find out what the issue is. Plus, I'm noticing that the page and row count information is showing up on the left side of the navigation which is different than the various demos. I'm hoping you can help. Below is the code.
I've also put this on my beta site at http://beta.vinoez.com.
Thanks for your help!!
Shawn
Here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DT.....";>
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="../styles/humanity/jquery-ui-1.8.2.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../styles/ui.jqgrid.css" />
<script type="text/javascript" src="../javascripts/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../javascripts/jqGrid/grid.locale-en.js"></script>
<script type="text/javascript" src="../javascripts/jqGrid/jquery.jqGrid.min.js"></script>
<script type="text/javascript">
var mydata = [
{"id":"35","location":"CH","description":"Chicago"},
{"id":"36","location":"CI","description":"So Cal"},
{"id":"37","location":"FT","description":"FT"},
{"id":"38","location":"HO","description":"HO"},
{"id":"39","location":"AT","description":"AT"},
{"id":"40","location":"BF","description":"BF"},
{"id":"41","location":"DN","description":"DN"},
{"id":"42","location":"FC","description":"FC"},
{"id":"43","location":"FM","description":"FM"},
{"id":"44","location":"LR","description":"LR"},
{"id":"45","location":"MA","description":"MA"}
];
jQuery(document).ready(function(){
jQuery('#htmlTable').jqGrid({
colNames:['id','location','description'],
colModel:[{name:'id',index:'id',width:30,sortable:true,editable:true,formatter:'integer'},
{name:'location',index:'location',width:120,sortable:true,editable:true},
{name:'description',index:'description',width:165,sortable:true,editable:true}],
data: mydata,
datatype: 'local',
height: 200,
width: 800,
shrinkToFit: false,
multiselect: true,
cellEdit: false,
recordpos: 'left',
pager: '#htmlPager',
rowNum:100,
rowList:[100,200,300],
sortname: 'id',
sortorder: "asc",
viewrecords: true,
rownumbers: true,
emptyrecords: "Nothing to display",
caption: 'LOCATION',
}).navGrid('#htmlPager');
});
</script>
</head>
<body>
<table id="htmlTable" class="scroll"></table>
<div id="htmlPager" class="scroll"></div>
</body>
</html>
19:11

27/07/2010

michaelg said:
Hi shawn,
can you try ...
pager: jQuery('#htmlPager')
... instead of
pager: '#htmlPager'
Cheers,
Michael
Hey Michael,
Thanks for the suggestion. I tried that. And I have the same issue.
Also, I didn't give the full URL on my original post. It is here: http://beta.vinoez.com/ui/test2.php (I updated the code with your recommendation).
Thanks,
Shawn
Most Users Ever Online: 715
Currently Online:
52 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