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

how to create navigate to URI in code behind

1 Answer 176 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 2
Mohammed asked on 24 Apr 2013, 10:54 PM
Hi team,
I want to create a navigate to URI by coding and that URI contain expression.
basically there is a textbox and i want to add a hyper link on it but when its value equal 0 then i don't want to enable hyper link feature.

this is the URI  :

="Reports/AttendeesProfiles.aspx?QRCodeID=" + Fields.QRCodeID+ "&QRCodeTypeDesc=" +  Trim(ReportItem.Parent.DataObject.QRCodeTypeDesc) + "&QRCodeName=" + Trim(Fields.QRCodeName)  + "&IsQRCodesType=False"

regards,
Mohammed

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 30 Apr 2013, 05:36 AM
Hi Mohammed,

As always we can recommend you to first use the designer in order to create the desired feature and only then to try and recreate it programmatically on your own.

In your case the code will look like this:
Telerik.Reporting.NavigateToUrlAction navigateToUrlAction1 = new Telerik.Reporting.NavigateToUrlAction();
navigateToUrlAction1.Url = "http://yourwebsite.yourdomain";

Wrap the code abave in a user function which will help you check if the action is needed. Then set the action of the item desired with binding.

Greetings,
IvanY
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
Mohammed
Top achievements
Rank 2
Answers by
IvanY
Telerik team
Share this question
or