Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think that the code could looks like the following</p> <pre><code>var alertIDs = {themodal: 'alertmod', modalhead: 'alerthd', modalcontent: 'alertcnt'}; $.jgrid.viewModal("#" + alertIDs.themodal, {gbox: "#gbox_" + $.jgrid.jqID(this.p.id), jqm: true}); $("#jqg_alrt").focus(); </code></pre> <p>where <code>this.p.id</code> (or <code>$.jgrid.jqID(this.p.id)</code>) can be replaced to the id of the grid. To be more sure that the alert work I do recommend you to use more long code</p> <pre><code>var alertIDs = {themodal:'alertmod',modalhead:'alerthd',modalcontent:'alertcnt'}; if ($("#"+alertIDs.themodal).html() === null) { $.jgrid.createModal(alertIDs,"&lt;div&gt;"+$.jgrid.nav.alerttext+ "&lt;/div&gt;&lt;span tabindex='0'&gt;&lt;span tabindex='-1' id='jqg_alrt'&gt;&lt;/span&gt;&lt;/span&gt;", {gbox:"#gbox_"+$.jgrid.jqID(this.p.id),jqModal:true,drag:true,resize:true, caption:$.jgrid.nav.alertcap, top:100,left:100,width:200,height: 'auto',closeOnEscape:true, zIndex: null},"","",true); } $.jgrid.viewModal("#"+alertIDs.themodal, {gbox:"#gbox_"+$.jgrid.jqID(this.p.id),jqm:true}); $("#jqg_alrt").focus(); </code></pre> <p><a href="http://www.ok-soft-gmbh.com/jqGrid/Warning.htm" rel="nofollow noreferrer">The demo</a> demonstrate the code. It displays the message</p> <p><img src="https://i.stack.imgur.com/KsVuX.png" alt="enter image description here"></p> <p>every time when you click on the <code>"Click me!"</code> button.</p> <p><strong>UPDATED:</strong> <a href="https://stackoverflow.com/a/32551247/315935">The answer</a> contains the information how one can use the above dialog in <a href="https://github.com/free-jqgrid/jqGrid" rel="nofollow noreferrer">free jqGrid</a>. It describes many option. The simplest version contains only one simple call <code>this.modalAlert();</code>. It displays the same alert dialog, which free jqGrid displays internally.</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