Forum


22:09

21/07/2009

Hi To All,
I am trying to get the version 3.5 beta version up and going. I am having trouble with the theme looking wrong. (text is wrong size, not table header and the cells don't look like the theme they just have a line around them.) Is it the way I am trying to reference the dependencies? Have I missed a dependency? I tried to follow the install.txt on github. Thanks for any help, Lance
<html>
<head>
<title>jqGrid Demo</title>
<link rel="stylesheet" type="text/css" media="screen" href="jqgrid/css/themes/coffee/grid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="jqgrid/css/themes/jqModal.css" />
<link rel="stylesheet" type="text/css" media="screen" href="jqgrid/jquery-ui/css/ui-lightness/jquery-ui-1.7.2.custom.css" />
<script src="jqgrid/jquery-ui/js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" href="jqgrid/css/ui.jqgrid.css" />
<script src="jqgrid/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="jqgrid/js/grid.locale-en.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#list").jqGrid({
url:'testJqgrid.php',
datatype: 'xml',
mtype: 'GET',
colNames:['Inv No','Date', 'Amount','Tax','Total','Notes'],
colModel :[
{name:'invid', index:'invid', width:55},
{name:'invdate', index:'invdate', width:90},
{name:'amount', index:'amount', width:80, align:'left'},
{name:'tax', index:'tax', width:80, align:'left'},
{name:'total', index:'total', width:80, align:'left'},
{name:'note', index:'note', width:150, sortable:true} ],
pager: jQuery('#pager'),
rowNum:10,
rowList:[10,20,30],
sortname: 'id',
sortorder: "desc",
viewrecords: true,
imgpath: 'jqgrid/css/themes/coffee/images',
caption: 'My first grid'
});
});
</script>
</head>
<body>
<table id="list" cellpadding="0" cellspacing="0" class="scroll"></table>
<div id="pager" class="scroll" style="text-align:center;"></div>
</body>
</html>
01:19

Moderators
30/10/2007

Hello,
Try with this:
.....
<link rel=”stylesheet” type=”text/css” media=”screen” href=”jqgrid/jquery-ui/css/ui-lightness/jquery-ui-1.7.2.custom.css” />
<link rel=”stylesheet” type=”text/css” media=”screen” href=”jqgrid/css/ui.jqgrid.css” />
<style>
html, body {
margin: 0;
padding: 0;
font-size: 75%;
}
</style>
<script src=”jqgrid/js/jquery-1.3.2.min.js” type=”text/javascript”></script>
<script src=”jqgrid/jquery-ui/js/jquery-ui-1.7.2.custom.min.js” type=”text/javascript”></script>
<script src=”jqgrid/js/grid.locale-en.js” type=”text/javascript”></script>
<script src=”jqgrid/js/jquery.jqGrid.min.js” type=”text/javascript”></script>
....
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
07:55

21/07/2009

Hi Tony,
Thanks very much for the reply. I added this mod, but I am still getting no caption header graphic or nice style to the grid.
I have tried all sorts of changes to the dependencies. Any further tips would be really appreciated. ps changing the imgpath:
seems to do nothing, the pager div is unaffected?
Regards,
Lance
03:19

Moderators
30/10/2007

Hello,
It seems that some css are not loaded. Please use FireBug and ensure that all the css files are loaded
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
06:38

26/07/2009

lance123 said:
Hi Tony,
Thanks very much for the reply. I added this mod, but I am still getting no caption header graphic or nice style to the grid.
I have tried all sorts of changes to the dependencies. Any further tips would be really appreciated. ps changing the imgpath:
seems to do nothing, the pager div is unaffected?
Regards,
Lance
I just started looking at this grid this weekend and I had a similar problem. What I finally noticed is how version 3.5 is different in this area from previous versions. This version is using the Jquery UI.
It seems you are mixing older CSS. If you look at this: http://www.trirand.com/blog/?p.....-cell-edit
You can see the correct CSS and JS links. Get rid of yours and paste those in your page. After that works (and it did for me), then find the files and copy to your web server and fix you link references.
(Note: when copy pasting, make sure your double-quotes are correct ascii double-quotes; do search and replace.
So “ becomes ")
(also, watch out for cutting off </script> )
The last "gotcha" is the images location. If your CSS is at webroot/css then your images need to be at webroot/css/images. The images can be found in the same location as the other files, or http://www.trirand.com/jqgrid3.....s/redmond/
The thing about this to keep in mind is that the image files and jquery-ui-1.7.1.custom.css make up a unique theme. You cannot use a different jquery-ui-1.7.1.custom.css with different images because jquery-ui-1.7.1.custom.css refers to *those* images, while a different jquery-ui-1.7.1.custom.css can refer to different images depending on the theme.
Most Users Ever Online: 715
Currently Online:
60 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