how to create navigate to URI in code behind

2 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 24 Apr 2013 Link to this post

    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"

  2. IvanY
    IvanY avatar
    417 posts

    Posted 30 Apr 2013 Link to this post

    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.

    the Telerik team

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

Back to Top