This is a migrated thread and some comments may be shown as answers.

Click event hadler on TextBox

10 Answers 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bronnikov
Top achievements
Rank 1
Bronnikov asked on 29 May 2013, 12:56 PM
Hello, I need to handle the click event on TextBox in rendered report. Can I do that and how?
Thanks for help

10 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 31 May 2013, 08:34 AM
Hi Bronnikov,

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,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Bronnikov
Top achievements
Rank 1
answered on 31 May 2013, 10:30 AM
Thanks, but I already read all articles about Interactivity in reports.

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.
0
Peter
Telerik team
answered on 04 Jun 2013, 10:36 AM
Hello Bronnikov,

In order to advise you appropriately please elaborate on your scenario to handle textbox on click event.

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Bronnikov
Top achievements
Rank 1
answered on 05 Jun 2013, 07:30 AM
I find the answer in DoubleClickEvent of ReportViewer.

In argument - e.OriginalSource I find the textBlock, which one doubleClicked, whith text data.
Then I can handle this event with some context info.
0
Bronnikov
Top achievements
Rank 1
answered on 05 Jun 2013, 01:54 PM
Hello, again.

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.
0
IvanY
Telerik team
answered on 07 Jun 2013, 05:24 PM
Hi Bronnikov,

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.

Regards,
IvanY
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Bronnikov
Top achievements
Rank 1
answered on 10 Jun 2013, 06:51 AM

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)

0
IvanY
Telerik team
answered on 13 Jun 2013, 06:23 AM
Hi Bronnikov,

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.

Regards,
IvanY
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Michael
Top achievements
Rank 1
answered on 07 Aug 2013, 07:32 PM
I also am having the same issue and wondering if there is a work around. We are in R/D mode looking for the best reporting service to go with, and this is a large functionality that we need to accomplish.  I'll try to explain the best I can...

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. 

Needed functionality:
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...

Issue:
How do I find which element was clicked and obtain the action link from the element?
0
Unknown
Top achievements
Rank 1
answered on 12 Aug 2013, 01:55 PM
It seems that you need to use ObjectDataSource (ODS) with your service. When using the ODS you can pass parameters as with any other data source. If you have a subreport you can set the parameters of the subreport in your main report. Then use those parameters in the report itself and pass them as parameters of the ODS.
Tags
General Discussions
Asked by
Bronnikov
Top achievements
Rank 1
Answers by
Peter
Telerik team
Bronnikov
Top achievements
Rank 1
IvanY
Telerik team
Michael
Top achievements
Rank 1
Unknown
Top achievements
Rank 1
Share this question
or