Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter" rel="nofollow noreferrer">custom formatter</a> or instert the <code>&lt;botton type='button' ....&gt;</code> (or <code>&lt;input type='button' ...&gt;</code>) with respect of 'setRowData' inside of <code>loadComplete</code> or <code>gridComplete</code> <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events" rel="nofollow noreferrer">event handler</a>. You can find an example if you look at <a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow noreferrer">jqGrid demo</a> and choose "Row Editing" / "Custom Edit". The binding of <code>onClick</code> event you can do either as in "Row Editing" / "Custom Edit" example or in <a href="http://en.wikipedia.org/wiki/Unobtrusive_JavaScript" rel="nofollow noreferrer">unobtrusive</a> way (see an example from <a href="https://stackoverflow.com/questions/4390999/jqgrid-showlink/4391786#4391786">here</a> not exactly for the same problem, but I hope you will understand what I mean) using <a href="http://api.jquery.com/click/" rel="nofollow noreferrer">jQuery.click</a> or <a href="http://api.jquery.com/bind/" rel="nofollow noreferrer">jQuery.bind</a>. By the way instead of the button you can consider to use link (<code>&lt;a&gt;</code> or <code>showLink</code>).</p> <p>Inside of "click" handle you can force loading of the detail grid exactly like you do this typically inside of <code>onSelectRow</code>.</p> <p><strong>UPDATED</strong>: Look <a href="http://www.ok-soft-gmbh.com/jqGrid/CustomLink.htm" rel="nofollow noreferrer">here</a> to see how one can place static texts as links in the jqGrid: <img src="https://i.stack.imgur.com/ZDRTN.png" alt="alt text"></p> <p>It could be needed to fill empty string '' in the "Details" column in the JSON respond from the server. In some cases depends from the data format and the <code>jsonReader</code> used it could be not required.</p> <p>In case of master/detail scenario you can display (set url or postData and trigger gridReload) detail grid on the place where "clicked the row ..." texts are displayed in the demo example.</p>
    singulars
    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.
    3. 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