Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First of all I can mention, that I am a little pessimistic about implementation of custom searching dialog. The reason is that you will invest much time in the implementation. I would you better recommend to use custom controls inside of <em>standard</em> searching dialog. After applying <a href="https://github.com/tonytomov/jqGrid/commit/03d31332cf62c6f819a7fc0fcb99d50dd3f8f802" rel="nofollow noreferrer">the changes</a> which I suggested it is now possible.</p> <p>Look at <a href="http://www.ok-soft-gmbh.com/jqGrid/Ranking2.htm" rel="nofollow noreferrer">the demo</a> which allows you to create searching dialog like</p> <p><img src="https://i.stack.imgur.com/8jDE6.png" alt="enter image description here"></p> <p>In the way you can solve many problems which you described in your question.</p> <p>If you do decide to create custom searching dialog you will have to do the following:</p> <ul> <li>The new searching dialog should add information about the searching criteria in <code>postData</code> properties.</li> <li>reload the grid using <code>.trigger.("reloadGrid")</code></li> </ul> <p>You don't need make separate Ajax request to the server. Reloading of the grid is what you need to do.</p> <p>If you want to save the information about the filter in the <code>postData.filters</code> you have to hold <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:advanced_searching#options" rel="nofollow noreferrer">the standard format</a>. In the case you can have advantage of local data filtering (<code>datatype: 'local'</code> or the usage of <code>loadonce: true</code>). See the demo from <a href="https://stackoverflow.com/a/3979490/315935">the answer</a> as an example.</p> <p>If you want to implement filtering of data on the <em>server side</em> only you can use any format of additional properties (please don't use the same name <code>filters</code>). If you want to have searching filter (controls) always visible on the page I would recommend you to use the technique with <code>postData</code> properties as function (see <a href="https://stackoverflow.com/a/2928819/315935">the answer</a>).</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