コード例 #1
0
 protected virtual void RaiseCancelSearching(ASPxCancelSearchingEventArgs e)
 {
     var eventHandler = (ASPxCancelSearchingEventHandler) Events[cancelSearching];
     
     if (eventHandler != null)
     {
         eventHandler(this, e);
     }
 }
コード例 #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;
        }