Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In my page i need a grid with paging.I am using default vendering engine is MVC.I created a jqgrid in partial view but the get method is not hitting to controller.
<script type="text/javascript"> $(document).ready(function () { $("#myGrid").jqGrid({ url: '@Url.Action("GetJqGridData", "BlogPostSurface")', datatype: 'json', myType: 'GET', colNames: ['Id', 'Name'], colModel: [ { name: 'Id', index: 'Id' }, { name: 'Name', index: 'Name' } ], jsonReader: { root: 'Data', id: 'id', repeatitems: false }, pager: $('#myPager'), rowNum: 5, rowList: [2, 5, 10], width: 600, viewrecords: true, caption: 'Jqgrid MVC Tutorial' }); });</script><h1>Home</h1><table id="myGrid"></table><div id="myPager"></div>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
JQ GRid in Umbraco
In my page i need a grid with paging.I am using default vendering engine is MVC.I created a jqgrid in partial view but the get method is not hitting to controller.
<script type="text/javascript">
$(document).ready(function () {
$("#myGrid").jqGrid({
url: '@Url.Action("GetJqGridData", "BlogPostSurface")',
datatype: 'json',
myType: 'GET',
colNames: ['Id', 'Name'],
colModel: [
{ name: 'Id', index: 'Id' },
{ name: 'Name', index: 'Name' }
],
jsonReader: {
root: 'Data',
id: 'id',
repeatitems: false
},
pager: $('#myPager'),
rowNum: 5,
rowList: [2, 5, 10],
width: 600,
viewrecords: true,
caption: 'Jqgrid MVC Tutorial'
});
});
</script>
<h1>Home</h1>
<table id="myGrid"></table>
<div id="myPager"></div>
is working on a reply...