10 Answers, 1 is accepted
Generally the rendered reports main purpose is to provide analytical information in multiple formats. The available interactivity features including drill through and hyperlink actions for report viewers are elaborated in the Adding Interactivity to Reports help articles. Still on click events are not available.Regards,
I need to handle click event on the item to do some action in program.
I tryed to create derived object from Telerik.Reporting.IAction - failed.
I tryed derive from Telerik.Reporting.NavigateToUrlAction - failed.
I tryed to find way to intercept Hyperlink Action to browser - failed.
Please, help me to find a way with handle onClick event,
because I'm doing a review of Telerik Reporting for our company and we need this handler very much.
If I don't find it - our company will not move to Telerik Reporting.
In order to advise you appropriately please elaborate on your scenario to handle textbox on click event.Regards,
In argument - e.OriginalSource I find the textBlock, which one doubleClicked, whith text data.
Then I can handle this event with some context info.
I found the way to handle mouse click event and I got the text, which rendered in TextBlock.
Problem - the user can see this text in ReportViewer and in rendered files, but I need to get some string, which I can handle in event, but user can't see it in order and this string I can set with expression in ReportDesigner Visaul Studio.
Please have in mind that such scenarios are not supported by Telerik Reporting and if you face any issues we might not be able to advise you accordingly. In case things do not work as you expect or the way they work changes in a subsequent version such an issue will be with an extremely low priority.
In your case it seems that you can simply use Visible=false, since the text will still be there, but the element will not be visible.
Really? How then magically I already use it?!
And how the user click on invisible item?!!!
Repeat once again - I need set the some invisible text information in textBox and visible text in textBox. After that I need handle click event on this textBox and parse invisible text of THIS textBox and do some action in my program. I NEED SET INVISIBLE AND VISIBLE TEXT OF THE ONE TEXT BOX!
Thank a lot for your help and your time)
Since it is still not very clear to us what your scenario and goals are it will be best if you open a support ticket and attach a sample project that exhibits the issue with some additional details. That way we will be able to view it locally and therefore advise you more accordingly.
Regarding the DoubleClick event of the report viewer - this currently may solve your scenario, but in general such scenarios are not intended by Telerik Reporting. This means that we have not done anything special at our end and such functionality most probably will not work across all report viewers. Additionally it might change in the future without any notice and if you have any issues with it we might not be able to help you since it is not considered to be a feature and is not tested nor developed at our end.
Our software is being developed on multiple platforms with a backened API that handles our business logic. Currently we are implementing Reporting into our WPF applications (using the ReportViewer object that telerik supplies).
We are working to allow complete flexibility for our clients so this is our routine:
1.) Develop the report in the report designer using dynamic fields (No data sources, just using =Fields.Item for example)
2.) Open the report in our WPF application by locating the .trdx file
3.) Provide the report the data using our DataService
4.) Show the report in the report viewer.
If a user clicks on a hyperlink (or subreport, etc...), my WPF needs to be notified of the click and be able to obtain the link that will be used to locate the next report, data, etc...
How do I find which element was clicked and obtain the action link from the element?