Skip to content

Integrated Search on Hitting Enter Key

Question:
Is it possible to trigger the search event when the user hit enter (key == 13) on the textfield of integrated search at top of the grid?

Solution:
$dg -> before_script_end .= '$("#YOUR_TABLE_NAME").jqGrid("filterToolbar", {searchOnEnter: true, stringResult: true, defaultSearch: "cn"});';

Feedback and Knowledge Base