title: jQgrid Search option is not working as expected
body: <p>I implement jQgrid free version in my MVC4 application.</p>
  <p><strong>Controller</strong></p>
  <pre><code>public class HomeController : Controller
  {
      public ActionResult GridAction()
      {
          return View();
      }
  
      public JsonResult FillGrid(string sidx, string sord, int page, int rows)
      {
          var models = new List&lt;Master&gt; {
                  new Master { Id = 1, Name = &quot;AAA&quot;,Description = &quot;test description 1&quot;, Created = DateTime.Now },
                  new Master { Id = 2, Name = &quot;BBB&quot;,Description = &quot;test description 2&quot;, Created = DateTime.Now },
                  new Master { Id = 3, Name = &quot;CCC&quot;,Description = &quot;test description 3&quot;, Created = DateTime.Now },
                  new Master { Id = 4, Name = &quot;DDD&quot;,Description = &quot;test description 4&quot;, Created = DateTime.Now },
                  new Master { Id = 5, Name = &quot;EEE&quot;,Description = &quot;test description 5&quot;, Created = DateTime.Now },
                  new Master { Id = 6, Name = &quot;FFF&quot;,Description = &quot;test description 6&quot;, Created = DateTime.Now },
                  new Master { Id = 7, Name = &quot;GGG&quot;,Description = &quot;test description 7&quot;, Created = DateTime.Now },
                  new Master { Id = 8, Name = &quot;HHH&quot;,Description = &quot;test description 8&quot;, Created = DateTime.Now },
                  new Master { Id = 9, Name = &quot;III&quot;,Description = &quot;test description 9&quot;, Created = DateTime.Now },
                  new Master { Id = 10, Name = &quot;JJJ&quot;,Description = &quot;test description 10&quot;, Created = DateTime.Now },
                  new Master { Id = 11, Name = &quot;KKK&quot;,Description = &quot;test description 11&quot;, Created = DateTime.Now },
                  new Master { Id = 12, Name = &quot;LLL&quot;,Description = &quot;test description 12&quot;, Created = DateTime.Now },
                  new Master { Id = 13, Name = &quot;MMM&quot;,Description = &quot;test description 13&quot;, Created = DateTime.Now },
                  new Master { Id = 14, Name = &quot;NNN&quot;,Description = &quot;test description 14&quot;, Created = DateTime.Now },
                  new Master { Id = 15, Name = &quot;OOO&quot;,Description = &quot;test description 15&quot;, Created = DateTime.Now },
                  new Master { Id = 16, Name = &quot;PPP&quot;,Description = &quot;test description 16&quot;, Created = DateTime.Now },
                  new Master { Id = 17, Name = &quot;QQQ&quot;,Description = &quot;test description 17&quot;, Created = DateTime.Now },
                  new Master { Id = 18, Name = &quot;RRR&quot;,Description = &quot;test description 18&quot;, Created = DateTime.Now },
                  new Master { Id = 19, Name = &quot;SSS&quot;,Description = &quot;test description 19&quot;, Created = DateTime.Now },
                  new Master { Id = 20, Name = &quot;TTT&quot;,Description = &quot;test description 20&quot;, Created = DateTime.Now },
                  new Master { Id = 21, Name = &quot;UUU&quot;,Description = &quot;test description 21&quot;, Created = DateTime.Now },
                  new Master { Id = 22, Name = &quot;VVV&quot;,Description = &quot;test description 22&quot;, Created = DateTime.Now },
                  new Master { Id = 23, Name = &quot;WWW&quot;,Description = &quot;test description 23&quot;, Created = DateTime.Now },
                  new Master { Id = 24, Name = &quot;XXX&quot;,Description = &quot;test description 24&quot;, Created = DateTime.Now },
                  new Master { Id = 25, Name = &quot;YYY&quot;,Description = &quot;test description 25&quot;, Created = DateTime.Now },
                  new Master { Id = 26, Name = &quot;ZZZ&quot;,Description = &quot;test description 26&quot;, Created = DateTime.Now },
              };
  
          return Json((
              from master in models
              orderby master.Id descending
              select new[] {
                         master.Id.ToString(CultureInfo.InvariantCulture),
                         master.Name,
                         master.Description,
                         master.Created == null ? &quot;&quot; : ((DateTime)master.Created).ToString(&quot;o&quot;)
                     }
          ).ToArray(), JsonRequestBehavior.AllowGet);
      }
  
      [HttpPost]
      public ActionResult Add(string Name, string Description)
      {
          int ret = 2;
          return Json(ret);
      }
  
      [HttpPost]
      public ActionResult Update(string Name, string Description)
      {
          int ret = 2;
          return Json(ret);
      }
  
      [HttpPost]
      public ActionResult Delete(int Id)
      {
          int ret = 2;
          return Json(ret);
      }
  
      [HttpPost]
      public ActionResult Search()
      {
          return Json(1);
      }
  }
  </code></pre>
  <p><strong>.cshtml</strong></p>
  <pre><code>@{
  ViewBag.Title = &quot;GridAction&quot;;
  }
  
  &lt;h2&gt;GridAction&lt;/h2&gt;
  &lt;table id=&quot;jQGridDemo&quot;&gt;
  &lt;/table&gt;
  &lt;div id=&quot;jQGridDemoPager&quot;&gt;
  &lt;/div&gt;
  &lt;table id=&quot;search&quot;&gt;&lt;/table&gt;
  &lt;div id=&quot;filter&quot;&gt;&lt;/div&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  
  jQuery(&quot;#jQGridDemo&quot;).jqGrid({
      url: '@Url.Action(&quot;FillGrid&quot;, &quot;Home&quot;)',
      datatype: &quot;json&quot;,
      mtype: &quot;POST&quot;,
      colNames: [&quot;Id&quot;, &quot;Name&quot;, &quot;Description&quot;, &quot;Created&quot;],
      colModel: [
          { name: &quot;Id&quot;, width: 100, key: true, formatter: &quot;integer&quot;, sorttype: &quot;integer&quot;, hidden: true },
          { name: &quot;Name&quot;, width: 200, sortable: true, editable: true, editrules: { required: true } },
          { name: &quot;Description&quot;, width: 400, sortable: false, editable: true, editrules: { required: true } },
          { name: &quot;Created&quot;, width: 120, formatter: &quot;date&quot;, formatoptions: { srcformat: &quot;ISO8601Long&quot;, newformat: &quot;n/j/Y g:i:s A&quot; }, align: &quot;center&quot;, sorttype: &quot;date&quot; },
      ],
      loadtext: &quot;Loading...&quot;,
      rowNum: 10,
      gridview: true,
      autoencode: true,
      loadonce: true,
      height: &quot;auto&quot;,
      rownumbers: true,
      prmNames: { id: &quot;Id&quot; },
      rowList: [10, 20, 30],
      pager: '#jQGridDemoPager',
      sortname: 'id',
      sortorder: &quot;asc&quot;,
      viewrecords: true,
      caption: &quot;CRUD on Local Data&quot;,
      editurl: '@Url.Action(&quot;Update&quot;, &quot;Home&quot;)',
  });
  
  jQuery(&quot;#jQGridDemo&quot;).jqGrid('navGrid', '#jQGridDemoPager',
      {
          searchtext: &quot;Search&quot;,
          addtext: &quot;Add&quot;,
          edittext: &quot;Edit&quot;,
          deltext: &quot;Delete&quot;
      },
      {//EDIT
          url: '@Url.Action(&quot;Update&quot;, &quot;Home&quot;)',
          width: &quot;auto&quot;,
          jqModal: true,
          closeOnEscape: true,
          closeAfterEdit: true,
      },
      {//ADD
          width: &quot;auto&quot;,
          // height: &quot;auto&quot;
          url: '@Url.Action(&quot;Add&quot;, &quot;Home&quot;)',
          closeOnEscape: true,
          closeAfterAdd: true
      },
      {//DELETE
          url: '@Url.Action(&quot;Delete&quot;, &quot;Home&quot;)',
          closeOnEscape: true
      },
      {//SEARCH
          closeOnEscape: true,
          searchOnEnter: true,
      });
  
  jQuery(&quot;#jQGridDemo&quot;).jqGrid('searchGrid', {multipleSearch :true, caption: &quot;Test caption&quot; });
  
  &lt;/script&gt;
  </code></pre>
  <p>Add, Edit and Delete functions are works correctly in the toolbar. I implement the search option in the grid footer. When I click the search button, search option is appear correctly but the grid is not filtered correctly.</p>