Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Deepa 14 posts 71 karma points
    May 22, 2015 @ 12:12
    Deepa
    0

    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> 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies