title: Setting the content-type of requests performed by jQuery jqGrid
body: <p>I am using the latest version of <a href="http://www.trirand.com/blog/?page_id=6" rel="noreferrer">jqGrid</a>: 3.6.4</p>
  
  <p>This seems like a simple problem (or at least it did before I spent a few hours on it):</p>
  
  <p>When the grid sends a request to the server (to a controller action), its content-type is always:</p>
  
  <pre><code>application/x-www-form-urlencoded; charset=UTF-8
  </code></pre>
  
  <p>and I would like it to be:</p>
  
  <pre><code>application/json; charset=utf-8
  </code></pre>
  
  <p>but I can find no way of setting the content-type (there is no contentType option as you would find on a $.ajax call for example).</p>
  
  <p>So just to clarify, I am not asking how to set the content-type on a jQuery server request, but specifically using jqGrid, which does not provide an obvious option for doing this.</p>
  
  <p>Thanks, Nigel.</p>
  
  <p><strong>Update:</strong>
  Oleg's response fixed solved it.</p>
  
  <p>Here are the option settings for the grid:</p>
  
  <pre><code>jQuery("#ContactGridList").jqGrid({
          url: '/ContactSelect/GridData/',
          datatype: 'json',
          ajaxGridOptions: { contentType: 'application/json; charset=utf-8' },
          mtype: 'POST',
          ...
  </code></pre>