Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Implementing search event handler causes full post back when paging

$
0
0

Good day.

 

We wanted to add functionality to the report search so we implemented a method as follows:

 

reportViewer.Search += crystalReportViewer1_Search_1;

privatevoid crystalReportViewer1_Search_1(object source, SearchEventArgs e)

{

  // Custom code here

}

 

We noticed after implementing this that the report seemed very slow when moving from page to page.  We confirmed that it is being caused by the implementation above.  We even tried making the search handler empty thinking that may have caused the issue.  It still happened with an empty event handler.

 

Using Fiddler I can see that with the implementation, the entire page is being rendered: a full post back.

 

Is there a way to prevent this behavior?

 

Thank you

ST


Viewing all articles
Browse latest Browse all 3636

Trending Articles