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

WPF report viewer: on click event in textbox inside table

3 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vaibhav
Top achievements
Rank 1
Vaibhav asked on 09 Apr 2013, 09:35 AM
Hi,

I am using WPF report viewer. I have one report which contains 10 rows. I want to click on the cell(textbox) & execute the method.

Thanks
Vaibhav

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Apr 2013, 03:55 PM
Hello Vaibhav,

Our suggestion is to set up an action that executes an user function.

Regards,
Peter
the Telerik team

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

0
Vaibhav
Top achievements
Rank 1
answered on 12 Apr 2013, 04:46 AM
Hi,

Thanks for the reply.
I already tried this one but it is not working as expected. Let say i have 3 rows with 1 column in a table. Column is displaying value 1 to 3 as given below.
Column_1
1
2
3

Now when I click on 1 it should not, navigate to other report. but is should display a message. see the function below.
 
[Function(IsVisible = false)]
        public static string ResolveUrl(string Textboxvalue)
        {
            System.Windows.Forms.MessageBox.Show(Textboxvalue);
            return "http://www.telerik.com"
;
        }

Now the problem it is displaying  message box while loading the report.But when I am clicking on column(Cell) value it is navigating to  "http://www.telerik.com" without displaying MessageBox.

Desired behavior: On click of each cell I want to display a message box only. I don't want to navigate to  "http://www.telerik.com"

Thanks
Vaibhav.


0
Peter
Telerik team
answered on 17 Apr 2013, 07:10 AM
Hello Vaibhav,

The desired behavior can't be achieved because the expressions including the user functions are evaluated in the processing stage.

Greetings,
Peter
the Telerik team

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

Tags
General Discussions
Asked by
Vaibhav
Top achievements
Rank 1
Answers by
Peter
Telerik team
Vaibhav
Top achievements
Rank 1
Share this question
or