jqGrid: POST-данные на сервер для извлечения данных строки (фильтрация и поиск)

У меня есть такая форма:

<form id='myForm'>
<input type='text' name='search' />
<input type='text' name='maxPrice' />
</form>

и таблица для моего jqGrid:

<table id='myGrid'></table>

Мне нужно POST (не получить) данные изmyForm к моему методу сервера, чтобы получить данные строки и заполнить сетку. До сих пор я не смог получить jqGrid для POST ничего. Я дважды проверил сериализацию данных, и она корректно сериализует данные моей формы. Вот мой код jqGrid:

$("#myGrid").jqGrid({
    url: '/Products/Search") %>',
    postData: $("#myForm").serialize(),
    datatype: "json",
    mtype: 'POST',
    colNames: ['Product Name', 'Price', 'Weight'],
    colModel: [
        { name: 'ProductName', index: 'ProductName', width: 100, align: 'left' },
        { name: 'Price', index: 'Price', width: 50, align: 'left' },
        { name: 'Weight', index: 'Weight', width: 50, align: 'left' }
    ],
    rowNum: 20,
    rowList: [10, 20, 30],
    imgpath: gridimgpath,
    height: 'auto',
    width: '700',
    //pager: $('#pager'),
    sortname: 'ProductName',
    viewrecords: true,
    sortorder: "desc",
    caption: "Products",
    ajaxGridOptions: { contentType: "application/json" },
    headertitles: true,
    sortable: true,
    jsonReader: {
        repeatitems: false,
        root: function(obj) { return obj.Items; },
        page: function(obj) { return obj.CurrentPage; },
        total: function(obj) { return obj.TotalPages; },
        records: function(obj) { return obj.ItemCount; },
        id: "ProductId"
    }
});

Вы видите, что я делаю неправильно или должно быть по-другому?

Ответы на вопрос(1)

Ваш ответ на вопрос