protected virtual void RaiseCancelSearching(ASPxCancelSearchingEventArgs e) { var eventHandler = (ASPxCancelSearchingEventHandler) Events[cancelSearching]; if (eventHandler != null) { eventHandler(this, e); } }
public void CancelSearch() { var eventArgs = new ASPxCancelSearchingEventArgs(); RaiseCancelSearching(eventArgs); if(eventArgs.Cancel) return; FilterExpression = eventArgs.CalculateFilterExpression(); DataBind(); SearchDetails = eventArgs.CalculateSearchDetails().IfEmpty(SettingsText.SearchResultsEmptyDetails); SearchPerformed = false; }