eckhchri / pcars-ds-liveview

Provides a html page for project cars dedicated server and display a map of the current race.
14 stars 1 forks source link

table searching enhancement #90

Closed viper4gh closed 7 years ago

viper4gh commented 7 years ago

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

eckhchri commented 7 years ago

cn=contains will be the standard search algorithm. Changes could have impact in relation to visible/hide makrer depending on filter on the table.