title: How to set focus to cell which was clicked to start inline edit in jqgrid
body: <p>In jqgrid inline editing is stared by double clicking in a cell.
  Cursor is positioned to first editable column.
  Second click in required to place cursor to the cell which was clicked.</p>
  
  <p>How to put cursor to the cell which was clicked to start inline edit?
  In cell edit mode clicked cell receives focus properly.</p>
  
  <pre><code>function beginInlineEdit(rowID, afterSave) {
      var grid2 = $("#grid");
      if (rowID &amp;&amp; rowID !== lastSelectedRow) {
          var scrollPosition = $("#grid").closest(".ui-jqgrid-bdiv").scrollLeft();
          cancelEditing($("#grid"));
          lastSelectedRow = rowID;
          setTimeout(function () {
              grid2.closest(".ui-jqgrid-bdiv").scrollLeft(scrollPosition);
          }, 100);
      }
      $("tr#" + lastSelectedRow + " div.ui-inline-edit, " + "tr#" + lastSelectedRow + " div.ui-inline-del").hide();
      $("tr#" + lastSelectedRow + " div.ui-inline-save, " + "tr#" + lastSelectedRow + " div.ui-inline-cancel").show();
  
      $("#grid").jqGrid('editRow', lastSelectedRow, true, null, null, null,
                   { _dokdata: FormData },
                   afterSave,
                   errorfunc,
                   function () {
                       cancelEditing($("#grid"));
                       setFocusToGrid();
                   }
               );
  }
  </code></pre>
  
  <p><strong>Update 1</strong></p>
  
  <p>I tried Oleg demo in IE9. Issues:</p>
  
  <ol>
  <li><p>double-clicking in checkbox column still puts focus to first column.</p></li>
  <li><p>I decreased browse window width and scrolled right. Clicking in righmost column causes strange rapid flashing: grid scrolls to leftmost position and after that back to right position. </p></li>
  </ol>
  
  <p>How to fix those issues ?</p>