Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






I don't see buttons find records and refresh

No Tags
UserPost

21:37
05/06/2012


Merlino175

New Member

posts 1

Dear sirs,

i'm trying the jqgrid

i copied the "first grid" sample and it works, but i don't see the two buttons that demo shows: find records and refresh.

How can i show them?

What is wrong?


thanks for any help and suggest


my page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DT…..t;&gt;

<html xmlns="http://www.w3.org/1999/xhtml&quot; xml:lang="en" lang="en">

<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/ui-lightness/jquery-ui-1.8.2.custom.css" />

<link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" />

 

<style type="text/css">

html, body {

margin: 0;

padding: 0;

font-size: 75%;

}

</style>

 

<script src="js/jquery-1.7.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 type="text/javascript">

$(function(){

$("#list").jqGrid({

url:'example.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:'right'},

{name:'tax', index:'tax', width:80, align:'right'},

{name:'total', index:'total', width:80, align:'right'},

{name:'note', index:'note', width:150, sortable:false}

],

pager: '#pager',

rowNum:10,

rowList:[10,20,30],

sortname: 'invid',

sortorder: 'desc',

viewrecords: true,

gridview:true,

pgbuttons:true,

pginput:true,

scroll:false,

caption: 'My first grid'

});

});

</script>

 

</head>

<body>

<table id="list"><tr><td/></tr></table>

<div id="pager"></div>

</body>

</html>



No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

62 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9582

Posts: 28755

Membership:

There are 10102 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (6999 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information