Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Theme Problem
20/07/2009
22:09
Avatar
lance123
Member
Members
Forum Posts: 9
Member Since:
21/07/2009
sp_UserOfflineSmall Offline

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>

22/07/2009
01:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

23/07/2009
07:55
Avatar
lance123
Member
Members
Forum Posts: 9
Member Since:
21/07/2009
sp_UserOfflineSmall Offline

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

27/07/2009
03:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

28/07/2009
06:38
Avatar
tnesham
Member
Members
Forum Posts: 5
Member Since:
26/07/2009
sp_UserOfflineSmall Offline

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.

28/07/2009
08:43
Avatar
lance123
Member
Members
Forum Posts: 9
Member Since:
21/07/2009
sp_UserOfflineSmall Offline

Hi tnesham,

That is fantastic!  I have been banging my head against this for a few days now and that sorted it beautifully 😉

Thanks once again I am looking forward to using this,

Lance

04/08/2009
11:21
Avatar
jarrod
Guest
Guests

Hi,

I seem to have the same problem. I have tried everything you suggested but still do not get the correct style or images loading. I am using the trunk version of MonoRail.

Is there any information I could provide you with that would help us solve this problem?

Regards,

Jarrod

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information