Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
remote paging with web api
posted

Hi,

Can I get simple project sample  for web api controller working with javascript client with iggrid

implementing remote paging?  I have below that client javascript but have problem with api controller retrieving page/page count

and storing this somehow.  thanks

        $(function () {
            $('#grid1').igGrid({
                requestType: "POST",
                dataSource: 'localhost/GridGetData',
                responseDataKey: 'Records',

                columns: [
                    {
                        key: 'ProductID', dataType: 'string', headerText: 'ID', width: '116px'
                    },
                    {
                        key: 'Name', dataType: 'string', headerText: 'Product Name', width: '117px'
                    },
                    {
                        key: 'ListPrice', dataType: 'number', headerText: 'Price', width: '117px'
                    },
                    {
                        key: 'ModifiedDate', dataType: 'date', headerText: 'Date', width: '116px'
                    }
                ],
                features: [
                    {
                        name: 'Paging',
                        recordCountKey: 'TotalRecordsCount',
                        pageIndexUrlKey: 'page',
                        pageSizeUrlKey: 'pageSize',
                        pageSize: 10,
                        type: 'remote'
                    }],
                height: '500px',
                width: '100%',
                localSchemaTransform: true
            });

Parents
  • 3995
    Offline posted

    Hello,

    We have a topic describing how to achieve remote paging on our own.

    Please review it and let me know if it helps or you need something more specific.

Reply Children