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_Related Related Topics sp_TopicIcon
css stylesheet
02/06/2010
12:23
Avatar
mirku
Member
Members
Forum Posts: 7
Member Since:
02/06/2010
sp_UserOfflineSmall Offline

Hello!

I have the following simple code:

${

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My First Grid</title>
 
<link rel="stylesheet" type="text/css" media="screen" href="css/redmond/jquery-ui-1.8.1.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" />

 
<style>
html, body {
 margin: 0;
    padding: 0;
    font-size: 75%;
}
</style>
 
<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="js/src/grid.loader.js" type="text/javascript"></script>

 
<script type="text/javascript">
jQuery(document).ready(function(){
  jQuery("#list").jqGrid({
    url:'example.php',
    datatype: 'xml',
    mtype: 'GET',
    colNames:['Inv No','Date', 'Amount','Tax','Total','Notes'],
    colModel :[
      {name:'invid', index:'invid', width:100,align:'center'},
      {name:'invdate', index:'invdate', width:100,align:'center'},
      {name:'amount', index:'amount', width:100, align:'center'},
      {name:'tax', index:'tax', width:100, align:'center'},
      {name:'total', index:'total', width:100, align:'center'},
      {name:'note', index:'note', width:100, sortable:false,align:'center'}
    ],
  
    rowNum:4,
    rowList:[1,2,4],
    pager: jQuery('#pager1'),
    sortname: 'invid',
    sortorder: 'desc',
    viewrecords: true,
    caption: 'Test Grid'
  });
});

</script>
 
</head>
<body>
<table align=center>
<tr><td>
<table  id="list" class="scroll" ></table>
<div id="pager1" class="scroll" style="text-align:center;"></div>
</tr></td>
</table>
</body>
</html>

}

The grid is correctly filled from the Mysql server by the php script but there is a problem with the css .

Please see the inserted image.Every time i try to change the theme only the colors change but the font size type remains the same.Please notice also the page number box from the pager that is displayed wrong.

Why the theme does not apply as is should ?

Image Enlarger

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
40 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