I am using JSON to load JsGrid. UI was displayed but data was not loading…
I have used html code like this…
rel=”stylesheet” type=”text/css” media=”screen” href=”themes/redmond/jquery-ui-1.8.2.custom.css” />
<link rel=”stylesheet” type=”text/css” media=”screen” href=”themes/ui.jqgrid.css” />
<link rel=”stylesheet” type=”text/css” media=”screen” href=”themes/ui.multiselect.css” />
<script src=”js/jquery.js” type=”text/javascript”>script>
<script src=”js/jquery-ui-1.8.2.custom.min.js” type=”text/javascript”>script>
<script src=”js/jquery.layout.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;
true;
script>
<script src=”js/ui.multiselect.js” type=”text/javascript”>script>
<script src=”js/jquery.jqGrid.min.js” type=”text/javascript”>script>
<script src=”js/jquery.tablednd.js” type=”text/javascript”>script>
<script src=”js/jquery.contextmenu.js” type=”text/javascript”>script>
<script type=”text/javascript”>
jQuery(document).ready(
function () {
“#list2″).jqGrid({
“json”,
'GET',
'ID', 'Values'],
'id', index: “id”, width: 55},
'value', index: “value”, width: 300}
'#pager2',
'id',
true,
“desc”,
“JSON Example”
});
jQuery(
“#list2″).jqGrid('navGrid', '#pager2', { edit: false, add: false, del: false });
script>
<
body>
<table id=”list2″>
table>
<div id=”pager2″>
div>
body>
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top