Note that there are some explanatory texts on larger screens.

plurals
  1. POjqGrid doesn't add search params to url
    primarykey
    data
    text
    <p>I'm trying to use the <code>filterToolbar</code> search option. Unfortunately the search string with parameters isn't added to the url. In debug I see that this line is executed:</p> <pre><code>590 if(!bsr) { $($t).jqGrid("setGridParam",{search:sd}).trigger("reloadGrid",[{page:1}]); } </code></pre> <p><code>sd</code> is true in my case.</p> <p>I see that the values that need to be sent to the server are stored in a variable called <code>sdata</code>, which is not sent. I also see that the <code>postData</code> filters has the right data in it, but it's not sent.</p> <p>I also noticed that <code>$t.p.searchurl</code> is undefined.</p> <p>This my jqGrid init (sorry for the mess):</p> <pre><code>grid_options = { altclass: "grid-altrow", altRows: true, autowidth: true, beforeSelectRow: edit, datastr: datastr, datatype: datatype, height: "100%", hidegrid: false, multiselect: true, multiselectWidth: 45, onPaging: do_page, onSortCol: sort, pager: "#pager", rowNum: ROW_NUM, sortname: "zone", url: url.toString(), gridComplete: grid_complete, jsonReader: { page: page, records: records, repeatitems: false, root: root, total: total }, prmNames: { addoper: null, deloper: null, editoper: null, id: null, nd: null, npage: null, oper: null, order: null, page: null, rows: null, search: null, sort: null, subgridid: null, totalrows: null }, colNames: [ "Entry Id", "Zone", "IP Address", "Netmask", "Description" ], colModel: [ { hidden: true, index: "id", name: "id" }, { editable: true, editoptions: { value: zone_map }, edittype: "select", index: "zone", name: "zone" }, { editable: true, editrules: { required: true }, index: "ip", name: "ip" }, { editable: true, editoptions: {value: netmask_edit_options_value}, edittype: "select", index: "netmask", name: "netmask", stype: "select" }, { editable: true, edittype: "custom", index: "comment", name: "comment" } ] }; grid.jqGrid(grid_options); grid.jqGrid("filterToolbar", { searchOnEnter : false, stringResult: true, beforeSearch: function(e) { debugger; } }); </code></pre> <p>Any help please?</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.
 

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