Ejemplo n.º 1
0
 protected virtual void RaiseCancelSearching(ASPxCancelSearchingEventArgs e)
 {
     var eventHandler = (ASPxCancelSearchingEventHandler) Events[cancelSearching];
     
     if (eventHandler != null)
     {
         eventHandler(this, e);
     }
 }
Ejemplo n.º 2
0
        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;
        }