Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Oleg is right. I created a <a href="http://jsfiddle.net/H8YEJ/" rel="nofollow">short fiddle</a> using most of your code (except it loads data locally), set the editing mode, and it works fine. You might want to work backward from a version that loads locally to a version that loads JSON, but you're not going to get any normal behavior unless you set <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3acell_editing" rel="nofollow">cellsubmit</a> or <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3aform_editing" rel="nofollow">editurl</a> values at the very least.</p> <p>Code below:</p> <pre><code>&lt;table id="theGrid"&gt;&lt;/table&gt; &lt;div id="theGridPager" style="text-align: center"&gt;&lt;/div&gt; $("#theGrid").jqGrid({ datatype: 'local', pager: $("#theGridPager"), viewrecords: true, sortname: 'value1', sortorder: 'desc', cellsubmit: 'clientArray', editurl: 'clientArray', cellEdit: true, caption: 'the grid', colNames: ['value0', 'value1', 'value2'], colModel: [ { name: 'value0', index: 'value0', width: 100 }, { name: 'value1', index: 'value1', width: 100 }, { name: 'value2', index: 'value2', width: 100, editable: true, edittype: 'select', editoptions: { value: "AAA:AAA;BBB:BBB;CCC:CCC" } } ] }); var gridData = [ { value0: 'value0 - 1', value1: '1', value2: 'AAA'}, { value0: 'value0 - 2', value1: '2', value2: 'BBB'}, { value0: 'value0 - 3', value1: '3', value2: 'CCC'} ]; for (var i = 0; i &lt; gridData.length; i++) { $("#theGrid").jqGrid('addRowData', gridData[i].value0, gridData[i]); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload