We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to handle hyperlink events in application

Hyperlink event allows to perform the customized action in your application when hyperlink is clicked in a report. The following section describes the details to add hyperlink to report and handle the customized action in application.

Adding a Hyperlink action

You can add a hyperlink to report items in RDL/RDLC reports with the help of Action properties. The below steps guide you to do this with the help of WPF Syncfusion Report Designer.

  • In design view of report, right-click the report items, then click Properties. designerimage1
  • In the properties dialog, select Action tab and choose Go to URL options.

designerimage2

designerimage3

  • Click OK.

Handling event in application

The hyperlink event can be registered in XAML or code behind as like following code snippet,

XAML 

 

C#

 

You can implement the customized action in the event handler method and set Cancel argument as true to true to ignore the report action. The following demonstrates opening a new custom window in application when hyperlink action is raised.

C#

 

Output

 

outputimage2

C:\Users\mahendran.shanmugam\AppData\Local\Microsoft\Windows\INetCache\Content.Word\SalesByMonthandYearAlt-KB.PNG

 

Sample

http://www.syncfusion.com/downloads/support/directtrac/general/ze/HyperlinkSample_26_12_2017411156240

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8298 01/11/2018 01/12/2018 WPF ReportViewer
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.