1
Help for ParamQuery Grid (free version) / Re: Row selection does not work
« on: August 19, 2013, 04:13:10 pm »
Thanks you very much. I just not have seen selected rows They was too light.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>TestApp</title>
<!--jQuery dependencies-->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<!--ParamQuery Grid dependencies-->
<link rel="stylesheet" href="lib/pqGrid/pqgrid.min.css" />
<script type="text/javascript" src="lib/pqGrid/pqgrid.min.js"></script>
<!--my dependencies-->
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/data.js"></script>
<script type="text/javascript" src="js\main.js"></script>
</head>
<body>
<div id="pq_grid"></div>
</body>
</html>
$(function(){
createPqGrid();
});
function createPqGrid() {
var obj = {
width: 700,
height: 400,
editable:false
}
obj.colModel = [{title:"First name", width:100, dataType:"string", dataIndx: "firstName"},
{title:"Last name", width:200, dataType:"string", dataIndx: "lastName" },
{title:"Age", width:50, dataType:"integer", dataIndx: "age" },
{title:"Sex", width:58, dataType:"string", dataIndx: "sex"}];
obj.dataModel = {
data:users(10000),
location: "local",
sorting: "local",
paging: "local",
curPage: 1,
rPP: 10000,
rPPOptions: [1, 10, 20, 30, 40, 50, 100, 500, 1000, 10000],
};
$("#pq_grid").pqGrid( obj );
return true;
}