title: JqGrid Add button object with SetRowData
body: <p>I used setRowData in gridComplete to add two buttons to a column called "Actions" in my JQGrid. It works perfectly however due to a recent change, I had to switch from passing in html to setRowData to somehow passing in two buttons objects... After the change, setRowData result in [object Object] being displayed in the column... I was just wondering what is the best way to add two button objects to a column in jqGrid? Should I use SetCell instead?</p>
  
  <p>Thanks,
  HS </p>
  
  <p>Edited:
  Thank you for your replies guys. However I am not sure I follow your answers... maybe I didn't describe the probably clearly... I followed the approach in <a href="https://stackoverflow.com/questions/2939631/jqgrid-add-custom-button-to-row">this</a> post to add my buttons to the Action column. However due to a recent change, I had to create my buttons like this:</p>
  
  <pre><code>acceptButton = $('&lt;button class="ui-state-default ui-corner-all"&gt;&lt;span class="ui-button-text"&gt;Accept&lt;/span&gt;&lt;/button&gt;',{click:function(){ AcceptNewValue(gridId,currentRow["UserID"],'') }});
  rejectButton = $('&lt;button class="ui-state-default ui-corner-all"&gt;&lt;span class="ui-button-text"&gt;Reject&lt;/span&gt;&lt;/button&gt;', {click:function(){ RejectNewValue(gridId,currentRow["UserID"],'') }});
  </code></pre>
  
  <p>The question is how do I now add both buttons to the "Action" column of my grid? Two buttons should appear on all rows...Different UserID will be passed into the click functions when buttons from different rows are clicked.</p>
  
  <p>Thanks,
  HS </p>