|
jqgrid
|
|
0
|
|
If you want to share something about jqgrid, you can leave messages to our blog.
|
- 2010/02/13 jQgrid v0.4 released, enhanced the sort functions, fixed the css issue and enriched the features.
- 2009/08/19 jQgrid v0.3.1 released, fixed function jqgrid_getCurrentPage().
- 2009/07/25 jQgrid v0.3 released.
- 2009/06/21 jQgrid v0.2 released.
- 2009/06/05 You can send us the grid template through tech@jqframework.com and we can link back to your site or to your contact point.
- 2009/06/05 jQgrid v0.1 released.
- 2009/06/02 Extended some features in jQgrid v0.1 and undergo final testing.
- 2009/05/31 jQgrid v0.1 will be released soon.
- jQgrid provided a centralize event handler for you to customize.
- jQgrid events included sort,create,update,search,refresh,copy,click and more.
- jQgrid can open infinite subgrid.
- jQgrid can let you to change your own language easily.
- jQgrid can remember records that you clicked even page changed.
- jQgrid supported paging handing.
- jQgrid is easy to integrate and customize.
- jQgrid box tested with IE6, IE7, IE8, FF3, Opera9, Safari4, Google Chrome2.
- Lightweight data grid - The source file is just 19k!
- Free and Free of charge under the MIT License.
If you have further questions, please contact us through our Knowledge Sharing Board.
Content Loading From Server Side
//grid div
<div id="page" class="grid" title="page value"></div>
//javascript
<script>
jQuery(document).ready(function(){
$("#page").jqgrid({
"name":"page",
"search":true,
"refresh":true,
"create":true,
"delete":true,
"showpage":true
});
var cols={};
cols["page_name"]="Page Name";
cols["create_date"]="Create Date";
$("#page").jqgrid_buildHeader(cols,{check:true});
var postdata={};
postdata["action"]="dataRequest";
$.post("pagemodal.php",postdata,function(data){
try{
$("#page").jqgrid_buildBody(data);
$("#page").jqgrid_resetCheckedItems();
}
catch(e){}
},"json");
});
function jQgridHandler(obj){
alert("id:"+obj["id"]+" name:"+obj["name"]+" action:"+obj["action"]+" value:"+obj["value"]);
}
</script>
//server side scripting
<?php
if ($_POST["action"]=="dataRequest"){
$dataObject[0]["page_name"]="a";
$dataObject[0]["create_date"]="100";
$dataObject[1]["page_name"]="b";
$dataObject[1]["create_date"]="200";
}
echo json_encode($dataObject);
?>
|
|
|
|