Is there a way to move match-rule dropdown and "+" button to the right/bottom of Searching Dialog in jqGrid version 4.5.0? -


i'm using jqgrid verison 4.5.0 , noticed default, pop-up single field search dialog doesn't this:

enter image description here

is there way move "+" button right of "-" button , move match-rule dropdown bottom, both of them snapshot? way less messy of our customers.

many thanks..


jquery v2.0 jquery-ui v1.10.3 jqgrid v4.5.0

$('#spreadsheet').navgrid('#pager',  {edit:false,add:false,del:false,search:true,view:false,refresh:false},  {}, {}, {},  {multiplesearch:true,multiplegroup:true,closeonescape:true,closeaftersearch:true,     searchonenter:true,showquery:false,width:800,caption:"search records" },  {} 

after discussion in comment clarified the searching dialog used options multiplesearch: true, without multiplegroup: true. goal hiding of dropdown allows user choose between "all/any".

in the answer showed how 1 can use afterredraw change searching dialog.

the demo displays dialog in form

enter image description here

it uses following afterredraw

afterredraw: function () {     $("input.add-rule", this)         .button()              // use jquery ui button         .val("add rule");      // change text of "+" button     $("input.delete-rule", this).button(); // use jquery ui button     $("select.opsel", this).hide(); } 

only last line ($("select.opsel", this).hide()) important. other lines improve little of searching dialog.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -