Fatmuemoo
Fatmuemoo

Reputation: 2217

JqGrid MultiSearch dialog add button hidden

with code like this:

$gird.navGrid("#pager", {"add":false,"edit":false,"del":false,"view":false}, {},{},{},{},{"multipleSearch":true,"overlay":false}

If I click the 'find' icon, the add button for adding a rule is hidden. IE here is the HTML from firebug:

<tr>
    <th align="left" colspan="5">
        <select class="opsel">
            <option selected="selected" value="AND">AND</option>
            <option value="OR">OR</option>
        </select>
        <span></span>
        <input type="button" class="add-rule ui-add" title="Add rule" value="+" style="display: none;">
    </th>
</tr>

If I add this:

$gird.searchGrid({"multipleSearch":true,"overlay":false});

Thee button is visible. What am I doing wrong?

Upvotes: 0

Views: 882

Answers (1)

Oleg
Oleg

Reputation: 221997

Sometimes things which look very strange can be solved very easy. The problem is that the searchGrid parameters {"multipleSearch":true,"overlay":false} are in another position of navGrid. Currently the settings will be interpret as prmView and not as prmSearch. You should remove one {} parameter:

$gird.jqGrid('navGrid', '#locationPager',
             {add:false,edit:false,del:false,view:false},
             {},{},{},{multipleSearch:true,overlay:false});

Upvotes: 1

Related Questions