I am using JQGrid in my application, and require add/edit/delete option to point to defined controller methods.I did some research and written the following code but it is not hitting the controller. Paging, sorting, searching working properly.
<table id="jQGridDemo">
</table>
<div id="pager">
</div>
......
$(document).ready(function () {
jQuery("#jQGridDemo").jqGrid({
............
pager: "#pager",
});
jQuery("#jQGridDemo").jqGrid('navGrid', '#pager', { add: true, edit: true, del: true, search: false, refresh: false }, { url: "/controller/method" }, {}, {}, {}, {});
jQuery("#jQGridDemo").jqGrid('filterToolbar', { searchOnEnter: false });
});
I have also used different syntax for URL:
{ url: '@Url.Action("controller/method")'}
Can anyone tell me what is the correction required in the syntax? Thanks in advance.