JQgrid Toolbar Search - dynamically remove a search box from any column

I am using jqgrid version 4.4.4 and now I am faced with one problem related to finding the toolbar. As I mention in the title, I want to remove the search box in the toolbar from any column "dynamically" during or after rendering the grid. I am google, but I did not find a suitable solution for my this problem. I used a property selColProplike this

$('#<gridId>').jqGrid('setColProp', 'LotNo', {
    search: false
});

and mentioned in the function loadcompletefor some logical reason. If anyone knows how to do this, kindly share your valuable ideas.

UPDATED: Now I am using the free jqgrid version 4.9.2, and this functionality also does not happen on it.

+4
source share
1 answer

The search search bar will be created once. It includes all the search columns in the search bar. If you need to change the property searchdynamically, then after changing the value of the property, searchyou need to recreate the search bar. You just need to call destroyFilterToolbarto remove the search bar and then call filterToolbaragain.

Alternatively, you can simply hide the search field after setting the property searchto false. The corresponding code may be something like

$("#gs_LotNo").closest(".ui-search-table").hide();

gs_LotNo LotNo. $("#gs_LotNo").closest(".ui-search-table"), , x. ($("#gs_LotNo").val("")) , , , .

+1

All Articles