title: Adding an empty cell to the last line of jqgrid dynamically
body: <p>I've been working on JQGid and has a requirement to combine common cells together in one big cell as shown!</p>
  
  <p><img src="https://i.stack.imgur.com/1mIDB.png" alt="enter image description here"></p>
  
  <p>Now the requirement is the add another cell below the last to that would have a clickable button in new cell in the Address column.Which is for adding a new address for adam whose dob is 11/11/1988.</p>
  
  <p>So the help I require is to create a an empty cell dynamically as the datasource for the jqgrid is a json object and I won't be able to modify the json value
  PLease let me know any custom formatter you know for this specific odd requirement
  Any help would be appreciated </p>
  
  <p>Below given is the cellattr function I've used to combine then <strong>Name</strong> field</p>
  
  <pre><code>    cellattr: function (rowId, val, rawObject, cm, rdata) {
                      var result;
  
                      if (prevCellVal.value == val) {
                          result = ' style="display: none" rowspanid="' + prevCellVal.cellId + '"';
                      }
                      else {
                          var cellId = this.id + '_row_' + rowId + '_' + cm.name;
  
                          result = ' rowspan="1" id="' + cellId + '"'+'"+"';
                          prevCellVal = { cellId: cellId, value: val };
                      }
  
                      return result ;
                  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/WPWA5.png" alt="This is the exact way I want my grid to be like">
  <img src="https://i.stack.imgur.com/90QHD.png" alt="The existing scenario"></p>
  
  <p>May be I'm not getting what you are trying to say but this is my current scenario and what I would need to is to move the add new Value dropdown to be added as a new row on the right side under the existing file or files (could be multiple based on the returned value from the server). I have used cellattr function as said above. with the answers i'm not able to fix this. 
  Using formatter I'm able to move it to the right side when there are no files are returned. But I'm not able to move it to the side with values returned
  Further help would be appreciated 
  Thanks in advance </p>