Fires when the user tries to perform a search by clicking the Search button or when a control triggers an "auto-submit" in the Search Part. If the event returns false, the clear action will be cancelled.
The canSearchSubmit event can be used to prevent a search from being performed when the Search button is clicked or when an "auto-submit" action is triggered by a control in the Search criteria.
To cancel the search, the event can return false. For example: