Two interactivity actions on a single textbox?

1 Answer 69 Views
General Discussions
Derek
Top achievements
Rank 1
Iron
Derek asked on 19 May 2023, 07:55 PM

Hello,

I am currently working on a report that involves a table that expands using the toggle visibility action. The table gets larger and shows more data the more I expand it. However, on one of the textboxes that I am using to expand the table, I would also like to link to a separate report. I am able to successfully link and pass parameters by using the "Navigate to Report" action. Unfortunately, after I link to the other report, the textbox containing this action loses its "toggle visibility" action.

I was wondering- would it be possible to set both the "toggle visibility" and "navigate to report" interactivity actions to the same textbox?

Much appreciated.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 24 May 2023, 08:58 AM

Hello Derek,

Thank you for the detailed information about your scenario!

A single report item can only have a single action attached to it, I am afraid. With that being said, what you are trying to achieve should be possible using a Custom Action. A custom action is an action that contains a collection of parameters, defined by the user, that will be evaluated during report processing. You may those parameters to get information about which items you need to manually hide/show and to update the reportSource object of the report viewer with the report that it should be navigated to when needed.

I recommend having a look at the Using action event handlers in HTML5-based report viewers to implement interactivity in the report - Telerik Reporting article for an example of how the report viewer action events can be used to edit the report on the front end.

Note that if you are using the Telerik Report Server product, you will need to edit the view where reports are previewed which is the following file:

C:\Program Files (x86)\Progress\Telerik Report Server\Telerik.ReportServer.Web\Views\Report\Preview.cshtml

Please let me know if you have any additional questions.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Derek
Top achievements
Rank 1
Iron
commented on 25 May 2023, 09:07 PM

Thank you for your response! I will definitely give this a try. 

Tags
General Discussions
Asked by
Derek
Top achievements
Rank 1
Iron
Answers by
Dimitar
Telerik team
Share this question
or