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

Open PDF File in new WIndow itemCommand

4 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 15 Aug 2011, 11:40 PM

Hi I'm stuck in the next situation, I need to open a pdf file which I upload to sever with a radupload, when I ItemCommandEvent fires, I've tried the following code in itemcommand event:

if (e.CommandName == "Ver")
            {
  
                e.Item.Selected = true;
                 
                foreach (GridDataItem selectedItem in RGDOCS.SelectedItems)
                {
                  
                    Session["strUrl"] = selectedItem["ColumnaUrl"].Text;
                
string Servidor = Request.Url.GetLeftPart(UriPartial.Authority);           var fullUrl  = Servidor + Session["strUrl"];              var NewProcess = new System.Diagnostics.Process();             NewProcess.StartInfo.FileName = fullUrl;             NewProcess.Start();

This code works fine when I'm in localhost, but when I deploy my webapplication doesn't work. Is there any other solution to accomplish this?

Hope you could help me.

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 18 Aug 2011, 01:03 PM
Hi Cristian José,

I suggest that you take a look at the following online example and see if it helps:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

Also, can you please specify if your grid is ajaxified?
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Andy Green
Top achievements
Rank 2
answered on 26 Sep 2012, 02:14 PM
Hi

Did you find a solutions to this?

Andy
0
Pavlina
Telerik team
answered on 01 Oct 2012, 08:17 PM
Hello Andy,

May I asked you to open a formal support ticket and send us a sample runnable project which replicates the described problem. We will examine it locally and will advice you further.

Thank you.

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Pavlina
Telerik team
answered on 01 Oct 2012, 08:17 PM
Hello Andy,

May I asked you to open a formal support ticket and send us a sample runnable project which replicates the described problem. We will examine it locally and will advice you further.

Thank you.

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Cristian
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Andy Green
Top achievements
Rank 2
Share this question
or