Hello,
I cant seem to get this parameter to work. In the docs it says to make
sure that viewrecords is set to true which I have done. I have
searched Google and this group and found nothing.

This is the JSON that is returned from my service:

{"total":0,"page":"1","records":0,"rows":[]}

This is my base definition:

                jQuery.extend(jQuery.jgrid.defaults,{
                        emptyrecords: "No records retrieved",
                        viewrecords: true
                        }
                );

Here is one of my grid definitions:

                jQuery('#service_list').jqGrid({
                        url: '/subscribers/get_services',
                        mtype: 'POST',
                        datatype: 'json',
                        postData: {
                                colOrder: 'ServiceName,Rate'
                        },
                        colModel: [{
                                label: 'Service',
                                name: 'ServiceName',
                                index: 'ServiceName',
                                sortable: false
                        }, {
                                label: 'Rate',
                                name: 'Rate',
                                index: 'Rate',
                                sortable: false,
                                align: 'right'
                        }],
                        pager: jQuery('#pager'),
                        rowNum: 20,
                        rowList: [10, 20, 30],
                        sortname: 'title',
                        sortorder: 'asc',
                        autowidth: true,
                        height: 'auto'
                });

Thanks for any help.
Steve

Reply via email to