Currently the table searching has defaultSearching on cn=contains.
But if you search for the VehicleClass GT3 you get not only GT3, you get GT3X additionally.
Possible solution:
enable the searchOperator dropdown menu:
jQuery("#DriverDataTable").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn", searchOperators: true });
And add the searchoptions in the colModel:
{name:'vehicleclass',width:60,sorttype:"text", searchoptions:{sopt:['cn','eq']}},
Currently the table searching has defaultSearching on cn=contains. But if you search for the VehicleClass GT3 you get not only GT3, you get GT3X additionally.
Possible solution: enable the searchOperator dropdown menu:
jQuery("#DriverDataTable").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn", searchOperators: true });
And add the searchoptions in the colModel:
{name:'vehicleclass',width:60,sorttype:"text", searchoptions:{sopt:['cn','eq']}},
info: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:toolbar_searching http://www.trirand.com/jqgridwiki/doku.php?id=wiki:search_config http://www.trirand.com/jqgridwiki/doku.php?id=wiki:search_config#colmodel_options