All, I was actively using jqGrid in the past few years, now I need it back to work on a requirement. Looks like the name has been changed to Gurrido JQGrid and seems to be a licensed version.
Could you please let me know if I no longer can use jqgrid for commercial purposes? At lease can I use the previous version of jqGrid? Please let me know..
Thanks!
Update : pasting the code snippet
<script type="text/javascript">
$(document).ready(function(){
$("#submitbutton1").click(function(){
jQuery("#listTable").jqGrid({
url:'/WebTest/MainAction.do',
datatype: "json",
colNames: ['Label','Value'],
colModel: [
{name:'label',index:'label'},
{name:'value',index:'value'}
],
autowidth : true,
//iconSet: "fontAwesome",
//showOneSortIcon: true,
//autoResizing: { compact: true, widthOfVisiblePartOfSortIcon: 13 },
//autoresizeOnLoad: true,
rowNum: 10,
rowList: [5, 10, 20, "10000:All"],
viewrecords: true,
pager: true,
toppager: true,
rownumbers: true,
sortname: "label",
sortorder: "desc",
caption: "Test"
}).jqGrid("navGrid", { view: true, cloneToTop: true})
.jqGrid("inlineNav")
.jqGrid("filterToolbar")
.jqGrid("gridResize");
})
})
</script>
<html >
<head>
<!-- <link rel="stylesheet" type="text/css" media="screen" href="../font-awesome/css/font-awesome.min.css"> -->
<link rel="stylesheet" type="text/css" media="screen" href="../themes/ui-lightness/jquery-ui-1.10.4.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../css/ui.jqgrid.min.css" />
<!-- <link rel="stylesheet" type="text/css" media="screen" href="../css/searchFilter.css" /> -->
<!-- <link rel="stylesheet" type="text/css" media="screen" href="../css/ui.multiselect.css" /> -->
<script src="../js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="../js/jquery-ui-1.10.4.custom.min.js" type="text/javascript"></script>
<script src="../js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script type="text/javascript">
$.jgrid.no_legacy_api = true;
$.jgrid.useJSON = true;
</script>
<script src="../js/jquery.jqgrid.min.js" type="text/javascript"></script> <!-- Version took from free jqgrid github -->
</head>
<title>Test</title>
<body bgcolor="white">
<br>
Hi this is the Test file
<input type="button" name="submitbutton1" id="submitbutton1" value="Test">
<br/>
<div id="outerDiv" style="margin:5px;">
<table id="list"></table>
<!--<div id="pager"></div>-->
</div>
// Tried this also, but its the same. Please note I have removed the iconSet as well.
<table id="listTable"></table>
<div id="pager"></div>
</body>
</html>
<!DOCTYPE html>
before<html>
? You use<title>Test</title>
on the wrong place. It's strictly recommended to include<meta charset="utf-8">
and<meta http-equiv="X-UA-Compatible" content="IE=edge">
at the beginning of<head>
. Where you placed<script>
with the code? Which version of jqGrid you used before? I recommend to verify your HTML code in validator.w3.org. – Rintoul