I have a filter toolbar in my JqGrid and the Clearfield "x" hyperlink is not displayed. There is not enough space for the ui-search-clear search box. If I could control the size of the input text field for searching inside the cell using the ui-search-input class, then it would show. I would think that this would work by default. So how can I fix this? My grid is defined as follows:
var populateGrid = function (data) {
var grid = $("#grid");
grid.jqGrid({
data: data,
colNames: ["No", "Company", "Trade", "Recommendation", ""],
colModel: [
{ name: "AssessmentNo", label: "AssessmentNo", width:80, align:"center" },
{ name: "Company", label: "Company", width:400, searchoptions: { sopt: ["cn"] } },
{ name: "Trade", label: "Trade", width: 220, searchoptions: { sopt: ["cn"] } },
{ name: "Recommendation", label: "Recommendation", width: 150 },
{ name: "Links", label: "Links", search: false, align: "center" }
],
cmTemplate: { width: 100, autoResizable: true },
loadonce: true,
forceClientSorting: true,
rowNum: 20,
pager: "#pager",
gridview: true,
ignoreCase: true,
shrinkToFit: false,
rownumbers: true,
sortname: "AssessmentNo",
viewrecords: true,
sortorder: "asc",
height: "100%"
});
grid.jqGrid("filterToolbar", {
beforeSearch: function () {
return false;
}
}).jqGrid("gridResize");
}
And my toolbar looks;
